railo.runtime
Interface PageSource

All Superinterfaces:
Serializable, SourceFile
All Known Implementing Classes:
PageSourceImpl

public interface PageSource
extends SourceFile

extends the source file with class features


Method Summary
 boolean exists()
           
 int getAccessCount()
           
 String getClazz()
           
 String getComponentName()
           
 String getFileName()
           
 String getFullRealpath()
          Returns the full name (mapping/realpath).
 String getJavaName()
           
 long getLastAccessTime()
           
 Mapping getMapping()
           
 PageSource getRealPage(String realPath)
          get an new Pagesoure from ralpath
 String getRealpath()
          returns the ralpath without the mapping
 Resource getResource()
          if the pageSource is based on a archive, Railo 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()
           
 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, Page defaultValue)
           
 boolean physcalExists()
           
 void setLastAccessTime()
          set time last accessed (now)
 void setLastAccessTime(long lastAccess)
          sets time last accessed page
 
Methods inherited from interface railo.runtime.SourceFile
getClassName, getDisplayPath, getFullClassName, getPackageName, getPhyscalFile, getRealPathAsVariableString
 

Method Detail

loadPage

Page loadPage(ConfigWeb config)
              throws PageException
loads the Page from this PageSource

Parameters:
config -
Returns:
page Loaded
Throws:
PageException

loadPage

Page loadPage(PageContext pc)
              throws PageException
Throws:
PageException

loadPage

Page loadPage(ConfigWeb config,
              Page defaultValue)
              throws PageException
loads the Page from this PageSource

Parameters:
config -
defaultValue -
Returns:
Page loaded
Throws:
PageException

loadPage

Page loadPage(PageContext pc,
              Page defaultValue)
              throws PageException
Throws:
PageException

getRealpath

String getRealpath()
returns the ralpath without the mapping

Returns:
Returns the realpath.

getFullRealpath

String getFullRealpath()
Returns the full name (mapping/realpath).

Returns:
mapping/realpath

getClazz

String getClazz()
Returns:
returns the full class name (Example: railo.web.test_cfm)

getFileName

String getFileName()
Returns:
return the file name of the source file (test.cfm)

getResource

Resource getResource()
if the pageSource is based on a archive, Railo returns the ra:// path

Specified by:
getResource in interface SourceFile
Returns:
return the Resource matching this PageSource

getResourceTranslated

Resource getResourceTranslated(PageContext pc)
                               throws PageException
if the pageSource is based on a archive, translate the source to a zip:// Resource

Parameters:
pc - the Page Context Object
Returns:
return the Resource matching this PageSource
Throws:
PageException

getJavaName

String getJavaName()
Returns:
returns the a classname matching to filename (Example: /railo/web/test_cfm)

getComponentName

String getComponentName()
Returns:
returns the a package matching to file (Example: railo.web)

getMapping

Mapping getMapping()
Returns:
returns mapping where PageSource based on

exists

boolean exists()
Returns:
returns if page source exists or not

physcalExists

boolean physcalExists()
Returns:
returns if the physical part of the source file exists

getSource

String[] getSource()
                   throws IOException
Returns:
return the sozrce of the file as String array
Throws:
IOException

getRealPage

PageSource getRealPage(String realPath)
get an new Pagesoure from ralpath

Parameters:
realPath -
Returns:
new Pagesource

setLastAccessTime

void setLastAccessTime(long lastAccess)
sets time last accessed page

Parameters:
lastAccess - time ast accessed

getLastAccessTime

long getLastAccessTime()
Returns:
returns time last accessed page

setLastAccessTime

void setLastAccessTime()
set time last accessed (now)


getAccessCount

int getAccessCount()
Returns:
returns how many this page is accessed since server is in use.


Copyright © 2012 Railo