public class FilePageSource extends CachingPageSource
| Modifier and Type | Field and Description |
|---|---|
private boolean |
_modCheck
do modification check
|
private java.lang.String |
_pathPrefix
the path prefix *
|
| Constructor and Description |
|---|
FilePageSource(java.lang.String pathPrefix)
Constructor
|
FilePageSource(java.lang.String pathPrefix,
java.lang.String encoding)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getModCheck()
Return whether doing file modification check
|
java.lang.String |
getPathPrefix()
Return the pathPrefix
|
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 |
setModCheck(boolean b)
Set whether to do file modification check
|
void |
setPathPrefix(java.lang.String pathPrefix)
Set the pathPrefix
|
assignPageStaticVariable, declarePageStaticVariable, getEncoding, getErrorSource, getJxpDocument, getJxpPage, getPageStaticVariable, hasJxpPage, hasPageStaticVariable, invalidatePageCache, isCaching, isJxpPageCached, purgeStaticVariables, setCaching, setEncodingprivate boolean _modCheck
private java.lang.String _pathPrefix
public FilePageSource(java.lang.String pathPrefix)
pathPrefix - the prefixpublic FilePageSource(java.lang.String pathPrefix,
java.lang.String encoding)
pathPrefix - the path prefixencoding - the encodingpublic final java.lang.String getStreamName(java.lang.String pageName)
public final java.lang.String getPathPrefix()
public final void setPathPrefix(java.lang.String pathPrefix)
pathPrefix - The pathPrefix to set.public boolean getModCheck()
public void setModCheck(boolean b)
b - true to turn on modification checkprotected 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