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, boolean trusted, boolean physicalFirst, boolean hidden, boolean readonly, boolean topLevel, boolean appMapping, boolean ignoreVirtual)
           
MappingImpl(ConfigImpl config, String virtual, String strPhysical, String strArchive, boolean trusted, boolean physicalFirst, boolean hidden, boolean readonly, boolean topLevel, boolean appMapping, boolean ignoreVirtual, 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
 Resource getArchive()
           
 ClassLoader getClassLoaderForArchive()
           
 ClassLoader getClassLoaderForPhysical(boolean reload)
          return the ClassLoader that match on the physical directory
 int getClassLoaderMaxElements()
           
 Resource getClassRootDirectory()
           
 Config getConfig()
          returns config of the mapping
 ConfigImpl getConfigImpl()
           
 PageSource getCustomTagPath(String name, boolean doCustomTagDeepSearch)
           
 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()
           
 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,
                   boolean trusted,
                   boolean physicalFirst,
                   boolean hidden,
                   boolean readonly,
                   boolean topLevel,
                   boolean appMapping,
                   boolean ignoreVirtual)

MappingImpl

public MappingImpl(ConfigImpl config,
                   String virtual,
                   String strPhysical,
                   String strArchive,
                   boolean trusted,
                   boolean physicalFirst,
                   boolean hidden,
                   boolean readonly,
                   boolean topLevel,
                   boolean appMapping,
                   boolean ignoreVirtual,
                   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
See Also:
Mapping.getClassLoaderForArchive()

getClassLoaderForPhysical

public ClassLoader getClassLoaderForPhysical(boolean reload)
                                      throws IOException
Description copied from interface: Mapping
return the ClassLoader that match on the physical directory

Specified by:
getClassLoaderForPhysical in interface Mapping
Parameters:
reload - reload the ClassLoader
Returns:
ClassLoader
Throws:
IOException

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.
See Also:
Mapping.getPhysical()

getVirtualLowerCase

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

getVirtualLowerCaseWithSlash

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

getArchive

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

hasArchive

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

hasPhysical

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

getClassRootDirectory

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

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
See Also:
railo.runtime.dump.Dumpable#toDumpData(railo.runtime.PageContext, int)

getPageSource

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

Specified by:
getPageSource in interface Mapping
Returns:
matching pagesource
See Also:
Mapping.getPageSource(java.lang.String)

getPageSource

public PageSource getPageSource(String path,
                                boolean isOut)
Specified by:
getPageSource in interface Mapping
Returns:
matching pagesoucre
See Also:
Mapping.getPageSource(java.lang.String, boolean)

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
See Also:
Mapping.check()

getConfig

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

Specified by:
getConfig in interface Mapping
Returns:
config
See Also:
Mapping.getConfig()

getConfigImpl

public ConfigImpl getConfigImpl()

isHidden

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

isPhysicalFirst

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

isReadonly

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

getStrArchive

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

getStrPhysical

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

isTrusted

public boolean isTrusted()
Specified by:
isTrusted in interface Mapping
Returns:
Returns the trusted.
See Also:
Mapping.isTrusted()

getVirtual

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

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
See Also:
Object.hashCode()

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2012 Railo