|
||||||||||
| 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.ResourceStreamPageSource
public class ResourceStreamPageSource
A JxpResourceSource uses resources from classpath as pages
| Field Summary | |
|---|---|
private java.lang.String |
_pathPrefix
the prefix * |
| Constructor Summary | |
|---|---|
ResourceStreamPageSource(java.lang.String pathPrefix)
|
|
ResourceStreamPageSource(java.lang.String pathPrefix,
java.lang.String encoding)
|
|
| Method Summary | |
|---|---|
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 |
| 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 java.lang.String _pathPrefix
| Constructor Detail |
|---|
public ResourceStreamPageSource(java.lang.String pathPrefix)
public ResourceStreamPageSource(java.lang.String pathPrefix,
java.lang.String encoding)
| Method Detail |
|---|
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 page
protected boolean hasStream(java.lang.String pageName)
hasStream in class CachingPageSourcepageName - the page name
protected java.io.InputStream loadStream(CachedJxpPage page)
throws java.io.IOException
loadStream in class CachingPageSourcejava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||