|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.PageSourceImpl
public final class PageSourceImpl
represent a cfml file on the runtime system
Field Summary | |
---|---|
static byte |
LOAD_ARCHIVE
|
static byte |
LOAD_PHYSICAL
|
Method Summary | |
---|---|
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()
|
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/realpath). |
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 realpath |
PageSource |
getRealPage(String realPath)
get an new Pagesoure from ralpath |
String |
getRealpath()
returns the ralpath without the mapping |
String |
getRealPathAsVariableString()
|
Resource |
getResource()
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()
|
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()
|
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final byte LOAD_ARCHIVE
public static final byte LOAD_PHYSICAL
Method Detail |
---|
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 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(Object obj)
equals
in class Object
public boolean equals(PageSource other)
other
-
public PageSource getRealPage(String realPath)
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()
SourceFile
getResource
in interface PageSource
getResource
in interface SourceFile
public Resource getResourceTranslated(PageContext pc) throws ExpressionException
PageSource
getResourceTranslated
in interface PageSource
pc
- the Page Context Object
ExpressionException
public void clear()
public void clear(ClassLoader cl)
cl
- public String getFullClassName()
getFullClassName
in interface SourceFile
public String _getFullClassName()
public boolean isLoad()
public String toString()
toString
in class Object
public long sizeOf()
Sizeable
sizeOf
in interface 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |