|
||||||||||
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 |
Resource |
getFile()
return file object, based on sourcefile |
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 |
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()
|
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,
ConfigWeb config)
|
Page |
loadPage(PageContext pc,
ConfigWeb config,
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 loadPage(ConfigWeb config) throws PageException
PageSource
loadPage
in interface PageSource
PageException
railo.runtime.PageSource#loadPage(railo.runtime.PageContext)
public Page getPage()
pc
- config
-
PageException
public Page loadPage(PageContext pc, ConfigWeb config) throws PageException
PageException
public Page loadPage(ConfigWeb config, Page defaultValue) throws PageException
PageSource
loadPage
in interface PageSource
PageException
railo.runtime.PageSource#loadPage(railo.runtime.PageContext, railo.runtime.Page)
public Page loadPage(PageContext pc, ConfigWeb config, Page defaultValue) throws PageException
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
PageSource.getRealpath()
public String getFullRealpath()
PageSource
getFullRealpath
in interface PageSource
PageSource.getFullRealpath()
public String getRealPathAsVariableString()
getRealPathAsVariableString
in interface SourceFile
public String getClazz()
getClazz
in interface PageSource
PageSource.getClazz()
public String getClassName()
getClassName
in interface SourceFile
public String getFileName()
getFileName
in interface PageSource
PageSource.getFileName()
public String getJavaName()
getJavaName
in interface PageSource
PageSource.getJavaName()
public String getPackageName()
getPackageName
in interface SourceFile
public String getComponentName()
getComponentName
in interface PageSource
PageSource.getComponentName()
public Mapping getMapping()
getMapping
in interface PageSource
PageSource.getMapping()
public boolean exists()
exists
in interface PageSource
PageSource.exists()
public boolean physcalExists()
physcalExists
in interface PageSource
PageSource.physcalExists()
public String[] getSource() throws IOException
getSource
in interface PageSource
IOException
PageSource.getSource()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public boolean equals(PageSource other)
other
-
public PageSource getRealPage(String realPath)
PageSource
getRealPage
in interface PageSource
PageSource.getRealPage(java.lang.String)
public final void setLastAccessTime(long lastAccess)
PageSource
setLastAccessTime
in interface PageSource
lastAccess
- time ast accessedPageSource.setLastAccessTime(long)
public final long getLastAccessTime()
getLastAccessTime
in interface PageSource
PageSource.getLastAccessTime()
public final void setLastAccessTime()
PageSource
setLastAccessTime
in interface PageSource
PageSource.setLastAccessTime()
public final int getAccessCount()
getAccessCount
in interface PageSource
PageSource.getAccessCount()
public Resource getFile()
SourceFile
getFile
in interface SourceFile
SourceFile.getFile()
public void clear()
public void clear(ClassLoader cl)
cl
- public String getFullClassName()
getFullClassName
in interface SourceFile
SourceFile.getFullClassName()
public String _getFullClassName()
public boolean isLoad()
public String toString()
toString
in class Object
Object.toString()
public long sizeOf()
Sizeable
sizeOf
in interface Sizeable
Sizeable.sizeOf()
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 |