public interface PageSource extends Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
executable()
returns true if the page source can be executed, means the source exists
or is trusted and loaded
|
boolean |
exists() |
int |
getAccessCount() |
String |
getClassName() |
String |
getComponentName() |
int |
getDialect() |
String |
getDisplayPath() |
String |
getFileName() |
String |
getJavaName() |
long |
getLastAccessTime() |
Mapping |
getMapping() |
Resource |
getPhyscalFile()
return file object, based on physical path and realpath
|
PageSource |
getRealPage(String realPath)
get an new Pagesoure from ralpath
|
String |
getRealpath()
returns the ralpath without the mapping
|
String |
getRealpathWithVirtual()
Returns the full name (mapping/realpath).
|
Resource |
getResource()
if the pageSource is based on a archive, Lucee returns the ra:// path
if the mapping physical path and archive is invalid or not defined, it is
possible this method returns null
|
Resource |
getResourceTranslated(PageContext pc)
if the pageSource is based on a archive, translate the source to a zip://
Resource
|
String[] |
getSource() |
Page |
loadPage(PageContext pc,
boolean forceReload)
loads a page
|
Page |
loadPage(PageContext pc,
boolean forceReload,
Page defaultValue)
loads a page
|
Page |
loadPageThrowTemplateException(PageContext pc,
boolean forceReload,
Page defaultValue)
loads a page
|
boolean |
physcalExists() |
void |
setLastAccessTime()
set time last accessed (now)
|
void |
setLastAccessTime(long lastAccess)
sets time last accessed page
|
Page loadPage(PageContext pc, boolean forceReload) throws PageException
pc
- forceReload
- PageException
- throws a exception when compilation fails or page
does not existPage loadPageThrowTemplateException(PageContext pc, boolean forceReload, Page defaultValue) throws PageException
pc
- forceReload
- defaultValue
- PageException
- throws a exception when compilation failsPage loadPage(PageContext pc, boolean forceReload, Page defaultValue)
pc
- forceReload
- defaultValue
- String getRealpath()
String getRealpathWithVirtual()
String getFileName()
Resource getResource()
Resource getResourceTranslated(PageContext pc) throws PageException
pc
- the Page Context ObjectPageException
String getClassName()
String getJavaName()
String getComponentName()
Mapping getMapping()
boolean exists()
boolean physcalExists()
String[] getSource() throws IOException
IOException
PageSource getRealPage(String realPath)
realPath
- void setLastAccessTime(long lastAccess)
lastAccess
- time ast accessedlong getLastAccessTime()
void setLastAccessTime()
int getAccessCount()
Resource getPhyscalFile()
String getDisplayPath()
int getDialect()
boolean executable()
Copyright © 2016. All rights reserved.