public class ResourceStreamPageSource extends CachingPageSource
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
_pathPrefix
the prefix *
|
| Constructor and Description |
|---|
ResourceStreamPageSource(java.lang.String pathPrefix) |
ResourceStreamPageSource(java.lang.String pathPrefix,
java.lang.String encoding) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getPathPrefix()
Get the path prefix
|
java.lang.String |
getStreamName(java.lang.String pageName) |
protected boolean |
hasStream(java.lang.String pageName)
Whether there's input stream from given page name
|
protected boolean |
isExpired(CachedJxpPage page)
Whether a page is expired
|
protected java.io.InputStream |
loadStream(CachedJxpPage page)
Load the input stream for the page
|
void |
setPathPrefix(java.lang.String pathPrefix)
Set the pathPrefix
|
assignPageStaticVariable, declarePageStaticVariable, getEncoding, getErrorSource, getJxpDocument, getJxpPage, getPageStaticVariable, hasJxpPage, hasPageStaticVariable, invalidatePageCache, isCaching, isJxpPageCached, purgeStaticVariables, setCaching, setEncodingpublic ResourceStreamPageSource(java.lang.String pathPrefix)
public ResourceStreamPageSource(java.lang.String pathPrefix,
java.lang.String encoding)
public final java.lang.String getPathPrefix()
public final java.lang.String getStreamName(java.lang.String pageName)
public final void setPathPrefix(java.lang.String pathPrefix)
pathPrefix - The pathPrefix to set.protected boolean isExpired(CachedJxpPage page)
isExpired in class CachingPageSourcepage - the pageprotected boolean hasStream(java.lang.String pageName)
hasStream in class CachingPageSourcepageName - the page nameprotected java.io.InputStream loadStream(CachedJxpPage page) throws java.io.IOException
loadStream in class CachingPageSourcejava.io.IOException