|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.onemind.jxp.JxpPageSource
org.onemind.jxp.CachingPageSource
org.onemind.jxp.FilePageSource
public class FilePageSource
Represents a JxpPageSource using the file system
Field Summary | |
---|---|
private boolean |
_modCheck
do modification check |
private java.lang.String |
_pathPrefix
the path prefix * |
Constructor Summary | |
---|---|
FilePageSource(java.lang.String pathPrefix)
Constructor |
|
FilePageSource(java.lang.String pathPrefix,
java.lang.String encoding)
Constructor |
Method Summary | |
---|---|
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 |
Methods inherited from class org.onemind.jxp.CachingPageSource |
---|
assignPageStaticVariable, declarePageStaticVariable, getEncoding, getErrorSource, getJxpDocument, getJxpPage, getPageStaticVariable, hasJxpPage, hasPageStaticVariable, invalidatePageCache, isCaching, isJxpPageCached, purgeStaticVariables, setCaching, setEncoding |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private boolean _modCheck
private java.lang.String _pathPrefix
Constructor Detail |
---|
public FilePageSource(java.lang.String pathPrefix)
pathPrefix
- the prefixpublic FilePageSource(java.lang.String pathPrefix, java.lang.String encoding)
pathPrefix
- the path prefixencoding
- the encodingMethod Detail |
---|
public 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 CachingPageSource
page
- the page
protected boolean hasStream(java.lang.String pageName)
hasStream
in class CachingPageSource
pageName
- the page name
protected java.io.InputStream loadStream(CachedJxpPage page) throws java.io.IOException
loadStream
in class CachingPageSource
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |