public final class PageSourceImpl extends Object implements PageSource, Sizeable
Modifier and Type | Field and Description |
---|---|
static byte |
LOAD_ARCHIVE |
static byte |
LOAD_PHYSICAL |
Modifier and Type | Method and Description |
---|---|
String |
_getFullClassName() |
static PageSource |
best(PageSource[] arr) |
void |
clear() |
void |
clear(ClassLoader cl)
clear page, but only when page use the same clasloader as provided
|
boolean |
equals(Object obj) |
boolean |
equals(PageSource other)
is given object equal to this
|
boolean |
exists() |
void |
flush() |
int |
getAccessCount() |
Resource |
getArchiveFile() |
String |
getClassName() |
String |
getClazz() |
String |
getComponentName() |
String |
getDisplayPath()
return source path as String
|
String |
getFileName() |
String |
getFullClassName() |
String |
getFullRealpath()
Returns the full name (mapping/relpath).
|
String |
getJavaName() |
long |
getLastAccessTime() |
Mapping |
getMapping() |
String |
getPackageName() |
Page |
getPage()
return page when already loaded, otherwise null
|
PageSource |
getParent() |
Resource |
getPhyscalFile()
return file object, based on physical path and relpath
|
PageSource |
getRealPage(String relPath)
get an new Pagesoure from ralpath
|
String |
getRealpath()
returns the ralpath without the mapping
|
String |
getRealPathAsVariableString() |
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
|
String[] |
getSource() |
boolean |
isComponent() |
boolean |
isLoad() |
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,
boolean forceReload) |
Page |
loadPage(PageContext pc,
Page defaultValue) |
static Page |
loadPage(PageContext pc,
PageSource[] arr) |
static Page |
loadPage(PageContext pc,
PageSource[] arr,
Page defaultValue) |
static boolean |
pageExist(PageSource ps) |
boolean |
physcalExists() |
void |
setLastAccessTime()
set time last accessed (now)
|
void |
setLastAccessTime(long lastAccess)
sets time last accessed page
|
long |
sizeOf()
return the size of the object
|
String |
toString() |
public static final byte LOAD_ARCHIVE
public static final byte LOAD_PHYSICAL
public Page getPage()
pc
- config
- PageException
public PageSource getParent()
public Page loadPage(ConfigWeb config) throws PageException
PageSource
loadPage
in interface PageSource
PageException
public Page loadPage(ConfigWeb config, Page defaultValue) throws PageException
PageSource
loadPage
in interface PageSource
PageException
public Page loadPage(PageContext pc, boolean forceReload) throws PageException
PageException
public Page loadPage(PageContext pc) throws PageException
loadPage
in interface PageSource
PageException
public Page loadPage(PageContext pc, Page defaultValue) throws PageException
loadPage
in interface PageSource
PageException
public void flush()
public String getDisplayPath()
getDisplayPath
in interface SourceFile
public boolean isComponent()
public Resource getPhyscalFile()
getPhyscalFile
in interface SourceFile
public Resource getArchiveFile()
public String getRealpath()
PageSource
getRealpath
in interface PageSource
public String getFullRealpath()
PageSource
getFullRealpath
in interface PageSource
public String getRealPathAsVariableString()
getRealPathAsVariableString
in interface SourceFile
public String getClazz()
getClazz
in interface PageSource
public String getClassName()
getClassName
in interface SourceFile
public String getFileName()
getFileName
in interface PageSource
public String getJavaName()
getJavaName
in interface PageSource
public String getPackageName()
getPackageName
in interface SourceFile
public String getComponentName()
getComponentName
in interface PageSource
public Mapping getMapping()
getMapping
in interface PageSource
public boolean exists()
exists
in interface PageSource
public boolean physcalExists()
physcalExists
in interface PageSource
public String[] getSource() throws IOException
getSource
in interface PageSource
IOException
public boolean equals(PageSource other)
other
- public PageSource getRealPage(String relPath)
PageSource
getRealPage
in interface PageSource
public final void setLastAccessTime(long lastAccess)
PageSource
setLastAccessTime
in interface PageSource
lastAccess
- time ast accessedpublic final long getLastAccessTime()
getLastAccessTime
in interface PageSource
public final void setLastAccessTime()
PageSource
setLastAccessTime
in interface PageSource
public final int getAccessCount()
getAccessCount
in interface PageSource
public Resource getResource()
PageSource
getResource
in interface PageSource
getResource
in interface SourceFile
public Resource getResourceTranslated(PageContext pc) throws ExpressionException
PageSource
getResourceTranslated
in interface PageSource
pc
- the Page Context ObjectExpressionException
public void clear()
public void clear(ClassLoader cl)
cl
- public String getFullClassName()
getFullClassName
in interface SourceFile
public String _getFullClassName()
public boolean isLoad()
public long sizeOf()
Sizeable
public static PageSource best(PageSource[] arr)
public static boolean pageExist(PageSource ps)
public static Page loadPage(PageContext pc, PageSource[] arr, Page defaultValue) throws PageException
PageException
public static Page loadPage(PageContext pc, PageSource[] arr) throws PageException
PageException
Copyright © 2015 Lucee