public interface PageSource extends SourceFile
Modifier and Type | Method and Description |
---|---|
boolean |
exists() |
int |
getAccessCount() |
java.lang.String |
getClazz() |
java.lang.String |
getComponentName() |
java.lang.String |
getFileName() |
java.lang.String |
getFullRealpath()
Returns the full name (mapping/relpath).
|
java.lang.String |
getJavaName() |
long |
getLastAccessTime() |
Mapping |
getMapping() |
PageSource |
getRealPage(java.lang.String relPath)
get an new Pagesoure from ralpath
|
java.lang.String |
getRealpath()
returns the ralpath without the mapping
|
Resource |
getResource()
if the pageSource is based on a archive, Lucee returns the ra:// path
|
Resource |
getResourceTranslated(PageContext pc)
if the pageSource is based on a archive, translate the source to a zip:// Resource
|
java.lang.String[] |
getSource() |
Page |
loadPage(ConfigWeb config)
loads the Page from this PageSource
|
Page |
loadPage(ConfigWeb config,
Page defaultValue)
loads the Page from this PageSource
|
Page |
loadPage(PageContext pc) |
Page |
loadPage(PageContext pc,
Page defaultValue) |
boolean |
physcalExists() |
void |
setLastAccessTime()
set time last accessed (now)
|
void |
setLastAccessTime(long lastAccess)
sets time last accessed page
|
getClassName, getDisplayPath, getFullClassName, getPackageName, getPhyscalFile, getRealPathAsVariableString
Page loadPage(ConfigWeb config) throws PageException
config
- PageException
Page loadPage(PageContext pc) throws PageException
PageException
Page loadPage(ConfigWeb config, Page defaultValue) throws PageException
config
- defaultValue
- PageException
Page loadPage(PageContext pc, Page defaultValue) throws PageException
PageException
java.lang.String getRealpath()
java.lang.String getFullRealpath()
java.lang.String getClazz()
java.lang.String getFileName()
Resource getResource()
getResource
in interface SourceFile
Resource getResourceTranslated(PageContext pc) throws PageException
pc
- the Page Context ObjectPageException
java.lang.String getJavaName()
java.lang.String getComponentName()
Mapping getMapping()
boolean exists()
boolean physcalExists()
java.lang.String[] getSource() throws java.io.IOException
java.io.IOException
PageSource getRealPage(java.lang.String relPath)
relPath
- void setLastAccessTime(long lastAccess)
lastAccess
- time ast accessedlong getLastAccessTime()
void setLastAccessTime()
int getAccessCount()