java.io.Serializable
public interface PageSource
extends java.io.Serializable
Modifier and Type | Method | 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() |
|
java.lang.String |
getClassName() |
|
java.lang.String |
getComponentName() |
|
int |
getDialect() |
|
java.lang.String |
getDisplayPath() |
|
java.lang.String |
getFileName() |
|
java.lang.String |
getJavaName() |
|
long |
getLastAccessTime() |
|
Mapping |
getMapping() |
|
Resource |
getPhyscalFile() |
return file object, based on physical path and realpath
|
PageSource |
getRealPage(java.lang.String realPath) |
get an new Pagesource from realpath
|
java.lang.String |
getRealpath() |
returns the realpath without the mapping
|
java.lang.String |
getRealpathWithVirtual() |
Returns the full name (mapping/realpath).
|
Resource |
getResource() |
if the pageSource is based on an 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 an archive, translate the source to a zip:// Resource
|
java.lang.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 an exception when compilation fails or page does not existPage loadPageThrowTemplateException(PageContext pc, boolean forceReload, Page defaultValue) throws PageException
pc
- forceReload
- defaultValue
- PageException
- throws an exception when compilation failsPage loadPage(PageContext pc, boolean forceReload, Page defaultValue)
pc
- forceReload
- defaultValue
- java.lang.String getRealpath()
java.lang.String getRealpathWithVirtual()
java.lang.String getFileName()
Resource getResource()
Resource getResourceTranslated(PageContext pc) throws PageException
pc
- the Page Context ObjectPageException
java.lang.String getClassName()
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 realPath)
realPath
- void setLastAccessTime(long lastAccess)
lastAccess
- time ast accessedlong getLastAccessTime()
void setLastAccessTime()
int getAccessCount()
Resource getPhyscalFile()
java.lang.String getDisplayPath()
int getDialect()
boolean executable()
Copyright © 2021. All rights reserved.