|
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.style.cache.FileSystemStyleCache
The FileSystemStyleCache is a StyleProvider implementation which caches generated CSS style sheets on the file system. FileSystemStyleCache instances are shared across applications running in the same VM. getSharedCache() can be used to obtain a shared FileSystemStyleCache instance for a particular source XSS document.
StyleProvider
Constructor Summary | |
protected |
FileSystemStyleCache(java.lang.String source,
java.lang.String target)
Creates a FileSystemStyleCache. |
Method Summary | |
java.lang.String |
getContentStyleType(StyleContext context)
Returns the mime type for the styles provided by this FileSystemStyleCache - "text/css". |
static StyleProvider |
getSharedCache(java.lang.String source,
java.lang.String target)
Returns a shared ImageProvider instance for the specified XSS document and target cache directory. |
java.util.Dictionary |
getShortStyleClasses(StyleContext context)
Returns a Dictionary which maps style class names to equivalent shorter names. |
StyleMap |
getStyleMap(StyleContext context)
Implementation of StyleProvider.getStyleMap(). |
java.lang.String |
getStyleSheetURI(StyleContext context)
Implementation of StyleCache.getStyleSheetURI(). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected FileSystemStyleCache(java.lang.String source, java.lang.String target)
source
- The path of the source XSS document. The
specified file must be a valid XSS document. If the specified
file does not exists, an IllegalArgumentException is thrown.target
- The path of the target directory. Generated
CSS files are stored in this directory. If the directory
does not exist and can not be created, an IllegalArgumentException
is thrown.Method Detail |
public java.lang.String getContentStyleType(StyleContext context)
getContentStyleType
in interface StyleProvider
public static StyleProvider getSharedCache(java.lang.String source, java.lang.String target)
source
- The path of the source XSS document. The
specified file must be a valid XSS document. If the specified
file does not exists, an IllegalArgumentException is thrown.target
- The path of the target directory. Generated
CSS files are stored in this directory. If the directory
does not exist and can not be created, an IllegalArgumentException
is thrown.public java.lang.String getStyleSheetURI(StyleContext context)
getStyleSheetURI
in interface StyleProvider
oracle.cabo.style.StyleProvider
context
- The context which describes the end user
environment for this requestpublic StyleMap getStyleMap(StyleContext context)
getStyleMap
in interface StyleProvider
oracle.cabo.style.StyleProvider
context
- The context which describes the target end user
environmentpublic java.util.Dictionary getShortStyleClasses(StyleContext context)
FileSystemStyleCache automatically generates short versions of every style class that is found the the underlying XSS document. FileSystemStyleCache clients can reduce the size of generated content by using this method to obtain short versions of any rendered style classes.
Note: The returned Dictionary uses String keys to represent the full class names. However, the short style class values may not necessarily be type java.lang.String. Clients must avoid explicitly casting the values contained in the Dictionary to type String. Instead, such values should be passed directly to the OutputMethod API to be rendered. Or, if the String representation is required, toString() should be called on the value.
context
- The StyleContext
|
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 |