railo.runtime
Class MappingImpl

java.lang.Object
  extended by railo.runtime.MappingImpl
All Implemented Interfaces:
Serializable, Dumpable, Mapping

public final class MappingImpl
extends Object
implements Mapping

Mapping class

See Also:
Serialized Form

Constructor Summary
MappingImpl(ConfigImpl config, String virtual, String strPhysical, String strArchive, short inspect, boolean physicalFirst, boolean hidden, boolean readonly, boolean topLevel, boolean appMapping, boolean ignoreVirtual, ApplicationListener appListener)
           
MappingImpl(ConfigImpl config, String virtual, String strPhysical, String strArchive, short inspect, boolean physicalFirst, boolean hidden, boolean readonly, boolean topLevel, boolean appMapping, boolean ignoreVirtual, ApplicationListener appListener, int classLoaderMaxElements)
           
 
Method Summary
 void check()
          checks the mapping
 void clearPages(ClassLoader cl)
          remove all Page from Pool using this classloader
 MappingImpl cloneReadOnly(ConfigImpl config)
          clones a mapping and make it readOnly
 ApplicationListener getApplicationListener()
           
 Resource getArchive()
           
 ClassLoader getClassLoaderForArchive()
           
 int getClassLoaderMaxElements()
           
 Resource getClassRootDirectory()
           
 Config getConfig()
          returns config of the mapping
 ConfigImpl getConfigImpl()
           
 PageSource getCustomTagPath(String name, boolean doCustomTagDeepSearch)
           
 short getInspectTemplate()
          inspect template setting (Config.INSPECT_*), if not defined with the mapping the config setting is returned
 short getInspectTemplateRaw()
          inspect template setting (Config.INSPECT_*), if not defined with the mapping, Config.INSPECT_UNDEFINED is returned
 PageSource getPageSource(String realPath)
          pagesoucre matching given realpath
 PageSource getPageSource(String path, boolean isOut)
           
 PageSourcePool getPageSourcePool()
           
 PCLCollection getPCLCollection()
           
 Resource getPhysical()
           
 String getStrArchive()
           
 String getStrPhysical()
           
 String getVirtual()
           
 String getVirtualLowerCase()
           
 String getVirtualLowerCaseWithSlash()
           
 boolean hasArchive()
           
 int hashCode()
           
 boolean hasPhysical()
           
 boolean ignoreVirtual()
           
 boolean isAppMapping()
           
 boolean isHidden()
           
static boolean isOK(PageSource ps)
           
static PageSource isOK(PageSource[] arr)
           
 boolean isPhysicalFirst()
           
 boolean isReadonly()
           
 boolean isTopLevel()
           
 boolean isTrusted()
          Deprecated. 
 DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp)
          method to print out information to a object as HTML
 String toString()
           
 PCLCollection touchPCLCollection()
           
 
Methods inherited from class java.lang.Object
equals, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MappingImpl

public MappingImpl(ConfigImpl config,
                   String virtual,
                   String strPhysical,
                   String strArchive,
                   short inspect,
                   boolean physicalFirst,
                   boolean hidden,
                   boolean readonly,
                   boolean topLevel,
                   boolean appMapping,
                   boolean ignoreVirtual,
                   ApplicationListener appListener)

MappingImpl

public MappingImpl(ConfigImpl config,
                   String virtual,
                   String strPhysical,
                   String strArchive,
                   short inspect,
                   boolean physicalFirst,
                   boolean hidden,
                   boolean readonly,
                   boolean topLevel,
                   boolean appMapping,
                   boolean ignoreVirtual,
                   ApplicationListener appListener,
                   int classLoaderMaxElements)
Parameters:
configServer -
config -
virtual -
strPhysical -
strArchive -
trusted -
physicalFirst -
hidden -
readonly -
Throws:
IOException
Method Detail

getClassLoaderMaxElements

public int getClassLoaderMaxElements()
Returns:
the classLoaderMaxElements

getClassLoaderForArchive

public ClassLoader getClassLoaderForArchive()
Specified by:
getClassLoaderForArchive in interface Mapping
Returns:
returns the archiveClassLoader

touchPCLCollection

public PCLCollection touchPCLCollection()
                                 throws IOException
Throws:
IOException

getPCLCollection

public PCLCollection getPCLCollection()

clearPages

public void clearPages(ClassLoader cl)
remove all Page from Pool using this classloader

Parameters:
cl -

getPhysical

public Resource getPhysical()
Specified by:
getPhysical in interface Mapping
Returns:
Returns the physical.

getVirtualLowerCase

public String getVirtualLowerCase()
Specified by:
getVirtualLowerCase in interface Mapping
Returns:
Returns the virtual lower case.

getVirtualLowerCaseWithSlash

public String getVirtualLowerCaseWithSlash()
Specified by:
getVirtualLowerCaseWithSlash in interface Mapping
Returns:
Returns the virtual lower case with slash at the end.

getArchive

public Resource getArchive()
Specified by:
getArchive in interface Mapping
Returns:
return the archive file

hasArchive

public boolean hasArchive()
Specified by:
hasArchive in interface Mapping
Returns:
returns if mapping has a archive

hasPhysical

public boolean hasPhysical()
Specified by:
hasPhysical in interface Mapping
Returns:
return if mapping has a physical path

getClassRootDirectory

public Resource getClassRootDirectory()
Specified by:
getClassRootDirectory in interface Mapping
Returns:
class root directory

cloneReadOnly

public MappingImpl cloneReadOnly(ConfigImpl config)
clones a mapping and make it readOnly

Parameters:
config -
Returns:
cloned mapping
Throws:
IOException

toDumpData

public DumpData toDumpData(PageContext pageContext,
                           int maxlevel,
                           DumpProperties dp)
Description copied from interface: Dumpable
method to print out information to a object as HTML

Specified by:
toDumpData in interface Dumpable
Returns:
HTML print out

getInspectTemplate

public short getInspectTemplate()
inspect template setting (Config.INSPECT_*), if not defined with the mapping the config setting is returned

Returns:

getInspectTemplateRaw

public short getInspectTemplateRaw()
inspect template setting (Config.INSPECT_*), if not defined with the mapping, Config.INSPECT_UNDEFINED is returned

Returns:

getPageSource

public PageSource getPageSource(String realPath)
Description copied from interface: Mapping
pagesoucre matching given realpath

Specified by:
getPageSource in interface Mapping
Returns:
matching pagesource

getPageSource

public PageSource getPageSource(String path,
                                boolean isOut)
Specified by:
getPageSource in interface Mapping
Returns:
matching pagesoucre

getPageSourcePool

public PageSourcePool getPageSourcePool()
Returns:
Returns the pageSourcePool.

check

public void check()
Description copied from interface: Mapping
checks the mapping

Specified by:
check in interface Mapping

getConfig

public Config getConfig()
Description copied from interface: Mapping
returns config of the mapping

Specified by:
getConfig in interface Mapping
Returns:
config

getConfigImpl

public ConfigImpl getConfigImpl()

isHidden

public boolean isHidden()
Specified by:
isHidden in interface Mapping
Returns:
Returns the hidden.

isPhysicalFirst

public boolean isPhysicalFirst()
Specified by:
isPhysicalFirst in interface Mapping
Returns:
Returns the physicalFirst.

isReadonly

public boolean isReadonly()
Specified by:
isReadonly in interface Mapping
Returns:
Returns the readonly.

getStrArchive

public String getStrArchive()
Specified by:
getStrArchive in interface Mapping
Returns:
Returns the strArchive.

getStrPhysical

public String getStrPhysical()
Specified by:
getStrPhysical in interface Mapping
Returns:
Returns the strPhysical.

isTrusted

@Deprecated
public boolean isTrusted()
Deprecated. 

Specified by:
isTrusted in interface Mapping
Returns:
Returns the trusted.

getVirtual

public String getVirtual()
Specified by:
getVirtual in interface Mapping
Returns:
Returns the virtual.

isAppMapping

public boolean isAppMapping()

isTopLevel

public boolean isTopLevel()
Specified by:
isTopLevel in interface Mapping

getCustomTagPath

public PageSource getCustomTagPath(String name,
                                   boolean doCustomTagDeepSearch)

ignoreVirtual

public boolean ignoreVirtual()

isOK

public static boolean isOK(PageSource ps)

isOK

public static PageSource isOK(PageSource[] arr)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

getApplicationListener

public ApplicationListener getApplicationListener()


Copyright © 2012 Railo