|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.cabo.servlet.xml.DefaultPageDescriptionCache
Implements a cache for UIX PageDescriptions. The cache can automatically check if the underlying file has been modified, and handles parsing errors.
=-=AEW Base class/interface? Move into cache package?
Constructor Summary | |
DefaultPageDescriptionCache(ParserManager manager,
java.lang.String basePath,
boolean checkModified,
boolean displayAllErrors)
Create a PageDescriptionCache. |
|
DefaultPageDescriptionCache(ParserManager manager,
java.lang.String basePath,
int msBetweenChecks,
boolean displayAllErrors)
Create a PageDescriptionCache. |
Method Summary | |
protected java.util.Dictionary |
createCacheDictionary()
Creates the dictionary for the cache. |
protected PageDescription |
createPageDescription(BajaContext context,
Page page,
NameResolver resolver,
InputStreamProvider provider)
Creates the page description for the specified UIX file. |
PageDescription |
getPageDescription(BajaContext context,
Page page)
Gets a single PageDescription from the cache. |
protected NameResolver |
getResolver(BajaContext context,
Page page)
|
protected java.lang.String |
getUIXFileName(BajaContext context,
Page page)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultPageDescriptionCache(ParserManager manager, java.lang.String basePath, boolean checkModified, boolean displayAllErrors)
manager
- the ParserManager to use to parse filesbasePath
- the root path to search for UIX filescheckModified
- if true, check on each request if the underlying
UIX file has been modifieddisplayAllErrors
- if true, all attempts to parse that
result in any warnings/errors will result in output
of an error page.public DefaultPageDescriptionCache(ParserManager manager, java.lang.String basePath, int msBetweenChecks, boolean displayAllErrors)
manager
- the ParserManager to use to parse filesbasePath
- the root path to search for UIX filesmsBetweenChecks
- The number of milliseconds required to elapse
before checking whether the UIX file was modifieddisplayAllErrors
- if true, all attempts to parse that
result in any warnings/errors will result in output
of an error page.Method Detail |
public PageDescription getPageDescription(BajaContext context, Page page)
getPageDescription
in interface PageDescriptionCache
context
- the current BajaContextpage
- the page for the PageDescriptionprotected PageDescription createPageDescription(BajaContext context, Page page, NameResolver resolver, InputStreamProvider provider) throws java.io.IOException
protected NameResolver getResolver(BajaContext context, Page page)
protected java.lang.String getUIXFileName(BajaContext context, Page page)
protected java.util.Dictionary createCacheDictionary()
|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |