railo.runtime.config
Class ConfigImpl

java.lang.Object
  extended by railo.runtime.config.ConfigImpl
All Implemented Interfaces:
Config
Direct Known Subclasses:
ConfigServerImpl, ConfigWebImpl

public abstract class ConfigImpl
extends Object
implements Config

Hold the definitions of the railo configuration.


Nested Class Summary
static class ConfigImpl.ComponentMetaData
           
 
Field Summary
static int AMF_CONFIG_TYPE_MANUAL
           
static int AMF_CONFIG_TYPE_XML
           
static int CFML_WRITER_REFULAR
           
static int CFML_WRITER_WS
           
static int CFML_WRITER_WS_PREF
           
static int CLIENT_BOOLEAN_FALSE
           
static int CLIENT_BOOLEAN_TRUE
           
static int DEBUG_DATABASE
           
static int DEBUG_EXCEPTION
           
static int DEBUG_IMPLICIT_ACCESS
           
static int DEBUG_QUERY_USAGE
           
static int DEBUG_TIMER
           
static int DEBUG_TRACING
           
static short INSPECT_UNDEFINED
           
static int MODE_CUSTOM
           
static int MODE_STRICT
           
static ExtensionProvider[] RAILO_EXTENSION_PROVIDERS
           
static int SERVER_BOOLEAN_FALSE
           
static int SERVER_BOOLEAN_TRUE
           
 
Fields inherited from interface railo.runtime.config.Config
CACHE_DEFAULT_FUNCTION, CACHE_DEFAULT_NONE, CACHE_DEFAULT_OBJECT, CACHE_DEFAULT_QUERY, CACHE_DEFAULT_RESOURCE, CACHE_DEFAULT_TEMPLATE, CLIENT_SCOPE_TYPE_COOKIE, CLIENT_SCOPE_TYPE_DB, CLIENT_SCOPE_TYPE_FILE, INSPECT_ALWAYS, INSPECT_NEVER, INSPECT_ONCE, RECOMPILE_AFTER_STARTUP, RECOMPILE_ALWAYS, RECOMPILE_NEVER, SCOPE_SMALL, SCOPE_STANDARD, SCOPE_STRICT, SESSION_TYPE_CFML, SESSION_TYPE_J2EE
 
Constructor Summary
ConfigImpl(CFMLFactory factory, Resource configDir, Resource configFile, TagLib[] tlds, FunctionLib[] flds)
           
 
Method Summary
 boolean allowCompression()
           
 boolean allowImplicidQueryCall()
          return if it is allowed to implizid query call, call a query member witot define name of the query.
 boolean allowRealPath()
           
 boolean checkForChangesInConfigFile()
           
 void clearComponentCache()
           
 void clearComponentMetadata()
           
 void clearCTCache()
           
 void clearFunctionCache()
           
 void clearResourceProviders()
           
 boolean closeConnection()
           
 boolean contentLength()
           
abstract  Cluster createClusterScope()
           
 Mapping createCustomTagAppMappings(String virtual, String physical)
           
 void createFunction(FunctionLib fl, String filename)
           
 void createTag(TagLib tl, String filename)
           
 boolean debug()
          return if debug output will be generated
 boolean debugLogOutput()
           
 boolean doComponentDeepSearch()
           
 boolean doCustomTagDeepSearch()
           
 boolean doLocalCustomTag()
          define if railo search in local directory for custom tags or not
 void flushComponentPathCache()
           
 void flushCTPathCache()
           
 AdminSync getAdminSync()
           
 Class getAdminSyncClass()
           
static Mapping[] getAllMappings(ConfigWeb cw)
           
static Mapping[] getAllMappings(PageContext pc)
           
 AMFCaster getAMFCaster(flex.messaging.config.ConfigMap properties)
           
 Map getAMFCasterArguments()
           
 Class getAMFCasterClass()
           
 int getAMFConfigType()
           
 ApplicationListener getApplicationListener()
          return current application listener
 LogAndSource getApplicationLogger()
           
 TimeSpan getApplicationTimeout()
           
 PageSource getBaseComponentPageSource()
           
 PageSource getBaseComponentPageSource(PageContext pc)
           
 String getBaseComponentTemplate()
           
 boolean getBufferOutput()
           
 Map<String,CacheConnection> getCacheConnections()
           
 CacheConnection getCacheDefaultConnection(int type)
          get default cache connection for a specific type
 String getCacheDefaultConnectionName(int type)
          get name of a default cache connection for a specific type
 Resource getCacheDir()
           
 long getCacheDirSize()
           
 Page getCachedPage(PageContext pc, String pathWithCFC)
           
 String getCacheMD5()
           
 String getCFCExtension()
           
 String[] getCFMLExtensions()
          return cfml extesnion
 int getCFMLWriterType()
           
 CFXTagPool getCFXTagPool()
           
 ClassLoader getClassLoader()
           
 ClassLoader getClassLoader(Resource[] reses)
           
 boolean getClientCluster()
           
 Resource getClientScopeDir()
           
 long getClientScopeDirSize()
           
 TimeSpan getClientTimeout()
           
 short getClientType()
           
 Class getClusterClass()
           
 FunctionLib getCombinedFLDs()
           
 short getCompileType()
          return the compile type of this context
 int getComponentDataMemberDefaultAccess()
           
 ImportDefintion getComponentDefaultImport()
           
 String getComponentDumpTemplate()
           
 boolean getComponentLocalSearch()
           
 Mapping[] getComponentMappings()
           
 ConfigImpl.ComponentMetaData getComponentMetadata(String key)
           
 boolean getComponentRootSearch()
           
 Compress getCompressInstance(Resource zipFile, int format, boolean caseSensitive)
           
 Resource getConfigDir()
           
 Resource getConfigFile()
           
 Struct getConstants()
           
 TagLib getCoreTagLib()
           
 InitFile getCTInitFile(PageContext pc, String key)
           
 String[] getCustomTagExtensions()
           
 Mapping[] getCustomTagMappings()
          return the mapping to custom tag directory
 DataSource getDataSource(String datasource)
           
 DataSource getDataSource(String datasource, DataSource defaultValue)
           
 DatasourceConnectionPool getDatasourceConnectionPool()
           
 DataSource[] getDataSources()
          return the all datasources
 Map<String,DataSource> getDataSourcesAsMap()
           
 DebugEntry[] getDebugEntries()
           
 DebugEntry getDebugEntry(String ip, DebugEntry defaultValue)
           
 int getDebugMaxRecordsLogged()
           
 int getDebugOptions()
           
 String getDebugTemplate()
           
 String getDefaultDataSource()
           
 DumpWriter getDefaultDumpWriter(int defaultType)
          returns the default DumpWriter
 String getDefaultEncoding()
           
 ResourceProvider getDefaultResourceProvider()
           
 Resource getDeployDirectory()
          return directory, where railo deploy translated cfml classes (java and class files)
 LogAndSource getDeployLogger()
           
 boolean getDotNotationUpperCase()
           
 DumpWriter getDumpWriter(String name)
          returns the DumpWriter matching key
 DumpWriter getDumpWriter(String name, int defaultType)
          returns the DumpWriter matching key
 DumpWriterEntry[] getDumpWritersEntries()
           
 boolean getErrorStatusCode()
           
 String getErrorTemplate(int statusCode)
           
 PrintWriter getErrWriter()
           
 LogAndSource getExceptionLogger()
           
 boolean getExecutionLogEnabled()
           
 ExecutionLogFactory getExecutionLogFactory()
           
 Resource getExtensionDirectory()
           
 ExtensionProvider[] getExtensionProviders()
           
 Extension[] getExtensions()
           
 CFMLFactory getFactory()
           
 Resource getFldFile()
           
 FunctionLib[] getFLDs()
          return all Function Library Deskriptors
 UDF getFromFunctionCache(String key)
           
abstract  boolean getFullNullSupport()
           
 Mapping getFunctionMapping()
           
 String getId()
           
static String getId(String key, String token, String defaultValue)
           
 short getInspectTemplate()
           
 long getLoadTime()
           
 Locale getLocale()
           
 int getLocalMode()
           
abstract  boolean getLoginCaptcha()
           
abstract  int getLoginDelay()
           
 String getMailDefaultEncoding()
           
 LogAndSource getMailLogger()
           
 Server[] getMailServers()
           
 int getMailSpoolInterval()
           
 int getMailTimeout()
           
 LogAndSource getMappingLogger()
           
 Mapping[] getMappings()
           
 int getMode()
           
 ORMConfiguration getORMConfig()
           
 ORMEngine getORMEngine(PageContext pc)
           
 Class<ORMEngine> getORMEngineClass()
           
 LogAndSource getORMLogger()
           
 PrintWriter getOutWriter()
           
 PageSource getPageSource(Mapping[] mappings, String realPath, boolean onlyTopLevel)
          get PageSource of the first Mapping that match the given criteria
 PageSource getPageSourceExisting(PageContext pc, Mapping[] mappings, String realPath, boolean onlyTopLevel, boolean useSpecialMappings, boolean useDefaultMapping, boolean onlyPhysicalExisting)
          return existing PageSource that match the given criteria, if there is no PageSource null is returned.
 PageSource[] getPageSources(PageContext pc, Mapping[] mappings, String realPath, boolean onlyTopLevel, boolean useSpecialMappings, boolean useDefaultMapping)
          get all PageSources that match the given criteria
 Resource getPhysical(Mapping[] mappings, String realPath, boolean alsoDefaultMapping)
          get Resource of the first Mapping that match the given criteria
 Resource getPhysicalResourceExisting(PageContext pc, Mapping[] mappings, String realPath, boolean onlyTopLevel, boolean useSpecialMappings, boolean useDefaultMapping)
          return existing Resource that match the given criteria, if there is no Resource null is returned.
 Resource[] getPhysicalResources(PageContext pc, Mapping[] mappings, String realPath, boolean onlyTopLevel, boolean useSpecialMappings, boolean useDefaultMapping)
          get all Resources that match the given criteria
 ProxyData getProxyData()
          return default proxy setting password
 boolean getPSQL()
           
 Resource getRemoteClientDirectory()
           
 LogAndSource getRemoteClientLog()
           
 RemoteClient[] getRemoteClients()
           
 Struct getRemoteClientUsage()
           
 TimeSpan getRequestTimeout()
           
 LogAndSource getRequestTimeoutLogger()
           
 Resource getResource(String path)
           
 String getResourceCharset()
           
 ResourceClassLoader getResourceClassLoader()
           
 ResourceProvider[] getResourceProviders()
           
 boolean getRestList()
           
 LogAndSource getRestLogger()
           
 Mapping[] getRestMappings()
           
 RestSettings getRestSetting()
           
abstract  Resource getRootDirectory()
           
 ClassLoader getRPCClassLoader(boolean reload)
           
 LogAndSource getScheduleLogger()
           
 Scheduler getScheduler()
           
 short getScopeCascadingType()
          return how railo cascade scopes
 LogAndSource getScopeLogger()
           
 int getScriptProtect()
           
 SearchEngine getSearchEngine()
           
 String getSecurityKey()
           
 SecurityManager getSecurityManager()
           
 String getSecurityToken()
           
 String getSerialNumber()
           
 boolean getSessionCluster()
           
 Resource getSessionScopeDir()
           
 long getSessionScopeDirSize()
           
 TimeSpan getSessionTimeout()
           
 short getSessionType()
           
 SpoolerEngine getSpoolerEngine()
           
 boolean getSupressWSBeforeArg()
           
 Resource getTagDirectory()
           
 Mapping getTagMapping()
           
 Resource getTempDirectory()
          return the temp directory
 String getTemplateCharset()
           
 LogAndSource getThreadLogger()
           
 String getTimeServer()
           
 long getTimeServerOffset()
           
 TimeZone getTimeZone()
           
 Resource getTldFile()
           
 TagLib[] getTLDs()
          return all Tag Library Deskriptors
 LogAndSource getTraceLogger()
           
 boolean getTriggerComponentDataMember()
           
abstract  URL getUpdateLocation()
           
abstract  String getUpdateType()
           
 boolean getUseTimeServer()
           
 double getVersion()
           
 Resource getVideoDirectory()
           
 Class getVideoExecuterClass()
           
 String getWebCharset()
           
 boolean hasDebugOptions(int debugOption)
           
 boolean hasPassword()
           
 int intDebug()
           
 int intDebugLogOutput()
           
 boolean isAllowURLRequestTimeout()
           
 boolean isClientCookies()
           
 boolean isClientManagement()
           
 boolean isDomainCookies()
           
 boolean isExtensionEnabled()
           
 boolean isMailSpoolEnable()
           
 boolean isProxyEnableFor(String host)
          return if proxy is enabled or not
 boolean isSessionManagement()
           
 boolean isShowVersion()
           
 boolean isSuppressContent()
           
 boolean isSuppressWhitespace()
          FUTHER Returns the value of suppresswhitespace.
 long lastModified()
           
 Struct listComponentCache()
           
 Struct listCTCache()
           
 boolean mergeFormAndURL()
          e merged return if url and form scope will b
 boolean passwordEqual(String password)
           
 void putCachedPageSource(String pathWithCFC, PageSource ps)
           
 void putComponentMetadata(String key, ConfigImpl.ComponentMetaData data)
           
 void putCTInitFile(String key, InitFile initFile)
           
 void putToFunctionCache(String key, UDF udf)
           
 void reloadTimeServerOffset()
          reload the time offset to a time server
 void reset()
          reset config
 ORMEngine resetORMEngine(PageContext pc, boolean force)
           
 void resetRPCClassLoader()
           
 void setAllowURLRequestTimeout(boolean allowURLRequestTimeout)
           
 void setAMFCaster(Class clazz, Map args)
           
 void setAMFCaster(String strCaster, Map args)
           
 void setAMFConfigType(int amfDeploy)
           
 void setAMFConfigType(String strDeploy)
           
 void setCacheMD5(String cacheMD5)
           
 void setThreadLogger(LogAndSource threadLogger)
           
 PageSource toPageSource(Mapping[] mappings, Resource res, PageSource defaultValue)
           
 boolean useComponentPathCache()
           
 boolean useComponentShadow()
          define if components has a "shadow" in the component variables scope or not.
 boolean useCTPathCache()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface railo.runtime.config.Config
allowRequestTimeout, checkPermGenSpace, getConfigServer, getIntervallMonitor, getIntervallMonitors, getRequestMonitor, getRequestMonitors, getSecurityDirectory, getThreadQueue, hasServerPassword, isMonitoringEnabled
 

Field Detail

INSPECT_UNDEFINED

public static final short INSPECT_UNDEFINED
See Also:
Constant Field Values

CLIENT_BOOLEAN_TRUE

public static final int CLIENT_BOOLEAN_TRUE
See Also:
Constant Field Values

CLIENT_BOOLEAN_FALSE

public static final int CLIENT_BOOLEAN_FALSE
See Also:
Constant Field Values

SERVER_BOOLEAN_TRUE

public static final int SERVER_BOOLEAN_TRUE
See Also:
Constant Field Values

SERVER_BOOLEAN_FALSE

public static final int SERVER_BOOLEAN_FALSE
See Also:
Constant Field Values

DEBUG_DATABASE

public static final int DEBUG_DATABASE
See Also:
Constant Field Values

DEBUG_EXCEPTION

public static final int DEBUG_EXCEPTION
See Also:
Constant Field Values

DEBUG_TRACING

public static final int DEBUG_TRACING
See Also:
Constant Field Values

DEBUG_TIMER

public static final int DEBUG_TIMER
See Also:
Constant Field Values

DEBUG_IMPLICIT_ACCESS

public static final int DEBUG_IMPLICIT_ACCESS
See Also:
Constant Field Values

DEBUG_QUERY_USAGE

public static final int DEBUG_QUERY_USAGE
See Also:
Constant Field Values

RAILO_EXTENSION_PROVIDERS

public static final ExtensionProvider[] RAILO_EXTENSION_PROVIDERS

AMF_CONFIG_TYPE_XML

public static final int AMF_CONFIG_TYPE_XML
See Also:
Constant Field Values

AMF_CONFIG_TYPE_MANUAL

public static final int AMF_CONFIG_TYPE_MANUAL
See Also:
Constant Field Values

MODE_CUSTOM

public static final int MODE_CUSTOM
See Also:
Constant Field Values

MODE_STRICT

public static final int MODE_STRICT
See Also:
Constant Field Values

CFML_WRITER_REFULAR

public static final int CFML_WRITER_REFULAR
See Also:
Constant Field Values

CFML_WRITER_WS

public static final int CFML_WRITER_WS
See Also:
Constant Field Values

CFML_WRITER_WS_PREF

public static final int CFML_WRITER_WS_PREF
See Also:
Constant Field Values
Constructor Detail

ConfigImpl

public ConfigImpl(CFMLFactory factory,
                  Resource configDir,
                  Resource configFile,
                  TagLib[] tlds,
                  FunctionLib[] flds)
Method Detail

isAllowURLRequestTimeout

public boolean isAllowURLRequestTimeout()
Returns:
the allowURLRequestTimeout

setAllowURLRequestTimeout

public void setAllowURLRequestTimeout(boolean allowURLRequestTimeout)
Parameters:
allowURLRequestTimeout - the allowURLRequestTimeout to set

getCompileType

public short getCompileType()
Description copied from interface: Config
return the compile type of this context

Specified by:
getCompileType in interface Config

reset

public void reset()
Description copied from interface: Config
reset config

Specified by:
reset in interface Config

reloadTimeServerOffset

public void reloadTimeServerOffset()
Description copied from interface: Config
reload the time offset to a time server

Specified by:
reloadTimeServerOffset in interface Config

lastModified

public long lastModified()

getScopeCascadingType

public short getScopeCascadingType()
Description copied from interface: Config
return how railo cascade scopes

Specified by:
getScopeCascadingType in interface Config
Returns:
type of cascading

getCFMLExtensions

public String[] getCFMLExtensions()
Description copied from interface: Config
return cfml extesnion

Specified by:
getCFMLExtensions in interface Config
Returns:
cfml extension

getCFCExtension

public String getCFCExtension()
Specified by:
getCFCExtension in interface Config

getFLDs

public FunctionLib[] getFLDs()
return all Function Library Deskriptors

Returns:
Array of Function Library Deskriptors

getCombinedFLDs

public FunctionLib getCombinedFLDs()

getTLDs

public TagLib[] getTLDs()
return all Tag Library Deskriptors

Returns:
Array of Tag Library Deskriptors

allowImplicidQueryCall

public boolean allowImplicidQueryCall()
Description copied from interface: Config
return if it is allowed to implizid query call, call a query member witot define name of the query.

Specified by:
allowImplicidQueryCall in interface Config
Returns:
is allowed

mergeFormAndURL

public boolean mergeFormAndURL()
Description copied from interface: Config
e merged return if url and form scope will b

Specified by:
mergeFormAndURL in interface Config
Returns:
merge or not

getApplicationTimeout

public TimeSpan getApplicationTimeout()
Specified by:
getApplicationTimeout in interface Config
Returns:
Returns the application Timeout.

getSessionTimeout

public TimeSpan getSessionTimeout()
Specified by:
getSessionTimeout in interface Config
Returns:
Returns the session Timeout.

getClientTimeout

public TimeSpan getClientTimeout()
Specified by:
getClientTimeout in interface Config
Returns:
Returns the client Timeout.

getRequestTimeout

public TimeSpan getRequestTimeout()
Specified by:
getRequestTimeout in interface Config
Returns:
Returns the request Timeout.

isClientCookies

public boolean isClientCookies()
Specified by:
isClientCookies in interface Config
Returns:
Returns the clientCookies.

isClientManagement

public boolean isClientManagement()
Specified by:
isClientManagement in interface Config
Returns:
Returns the clientManagement.

isDomainCookies

public boolean isDomainCookies()
Specified by:
isDomainCookies in interface Config
Returns:
Returns the domainCookies.

isSessionManagement

public boolean isSessionManagement()
Specified by:
isSessionManagement in interface Config
Returns:
Returns the sessionManagement.

isMailSpoolEnable

public boolean isMailSpoolEnable()
Specified by:
isMailSpoolEnable in interface Config
Returns:
Returns the spoolEnable.

getMailServers

public Server[] getMailServers()
Specified by:
getMailServers in interface Config
Returns:
return all defined Mail Servers

getMailTimeout

public int getMailTimeout()
Specified by:
getMailTimeout in interface Config
Returns:
Returns the mailTimeout.

getPSQL

public boolean getPSQL()
Specified by:
getPSQL in interface Config
Returns:
preserve single quotes in cfquery tag or not

getClassLoader

public ClassLoader getClassLoader()
Specified by:
getClassLoader in interface Config
Returns:
classloader of ths context

getResourceClassLoader

public ResourceClassLoader getResourceClassLoader()

getClassLoader

public ClassLoader getClassLoader(Resource[] reses)
                           throws IOException
Specified by:
getClassLoader in interface Config
Throws:
IOException

getLocale

public Locale getLocale()
Specified by:
getLocale in interface Config
Returns:
Returns the locale.

debug

public boolean debug()
Description copied from interface: Config
return if debug output will be generated

Specified by:
debug in interface Config
Returns:
debug or not

debugLogOutput

public boolean debugLogOutput()

intDebug

public int intDebug()

intDebugLogOutput

public int intDebugLogOutput()

getTempDirectory

public Resource getTempDirectory()
Description copied from interface: Config
return the temp directory

Specified by:
getTempDirectory in interface Config
Returns:
temp directory

getMailSpoolInterval

public int getMailSpoolInterval()
Specified by:
getMailSpoolInterval in interface Config
Returns:
Returns the spoolInterval.

getMailLogger

public LogAndSource getMailLogger()
Specified by:
getMailLogger in interface Config
Returns:
Returns the mailLogger.

getRestLogger

public LogAndSource getRestLogger()

getThreadLogger

public LogAndSource getThreadLogger()

setThreadLogger

public void setThreadLogger(LogAndSource threadLogger)

getRequestTimeoutLogger

public LogAndSource getRequestTimeoutLogger()
Specified by:
getRequestTimeoutLogger in interface Config
Returns:
Returns the request timeout Directory.

getTimeZone

public TimeZone getTimeZone()
Specified by:
getTimeZone in interface Config
Returns:
returns the time zone for this

getTimeServerOffset

public long getTimeServerOffset()
Specified by:
getTimeServerOffset in interface Config
Returns:
returns the offset from the timeserver to local time

getSearchEngine

public SearchEngine getSearchEngine()
Specified by:
getSearchEngine in interface Config
Returns:
return the search Storage

getScheduler

public Scheduler getScheduler()
Specified by:
getScheduler in interface Config
Returns:
return the Scheduler

hasPassword

public boolean hasPassword()
Specified by:
hasPassword in interface Config
Returns:
return if a password is set

passwordEqual

public boolean passwordEqual(String password)
Specified by:
passwordEqual in interface Config
Returns:
return if a password is set

getMappings

public Mapping[] getMappings()
Specified by:
getMappings in interface Config
Returns:
Returns the mappings.

getRestMappings

public Mapping[] getRestMappings()

getPageSource

public PageSource getPageSource(Mapping[] mappings,
                                String realPath,
                                boolean onlyTopLevel)
Description copied from interface: Config
get PageSource of the first Mapping that match the given criteria

Specified by:
getPageSource in interface Config
Parameters:
mappings - per application mappings
realPath - path to get PageSource for
onlyTopLevel - checks only toplevel mappings

getPageSourceExisting

public PageSource getPageSourceExisting(PageContext pc,
                                        Mapping[] mappings,
                                        String realPath,
                                        boolean onlyTopLevel,
                                        boolean useSpecialMappings,
                                        boolean useDefaultMapping,
                                        boolean onlyPhysicalExisting)
Description copied from interface: Config
return existing PageSource that match the given criteria, if there is no PageSource null is returned.

Specified by:
getPageSourceExisting in interface Config
Parameters:
pc - current PageContext
mappings - per application mappings
realPath - path to get PageSource for
onlyTopLevel - checks only toplevel mappings
useSpecialMappings - invoke special mappings like "mapping-tag" or "mapping-customtag"
useDefaultMapping - also invoke the always existing default mapping "/"

getPageSources

public PageSource[] getPageSources(PageContext pc,
                                   Mapping[] mappings,
                                   String realPath,
                                   boolean onlyTopLevel,
                                   boolean useSpecialMappings,
                                   boolean useDefaultMapping)
Description copied from interface: Config
get all PageSources that match the given criteria

Specified by:
getPageSources in interface Config
Parameters:
pc - current PageContext
mappings - per application mappings
realPath - path to get PageSource for
onlyTopLevel - checks only toplevel mappings
useSpecialMappings - invoke special mappings like "mapping-tag" or "mapping-customtag"
useDefaultMapping - also invoke the always existing default mapping "/"

getPhysical

public Resource getPhysical(Mapping[] mappings,
                            String realPath,
                            boolean alsoDefaultMapping)
Description copied from interface: Config
get Resource of the first Mapping that match the given criteria

Specified by:
getPhysical in interface Config
Parameters:
mappings2 -
realPath -
alsoDefaultMapping - ignore default mapping (/) or not
Returns:
physical path from mapping

getPhysicalResources

public Resource[] getPhysicalResources(PageContext pc,
                                       Mapping[] mappings,
                                       String realPath,
                                       boolean onlyTopLevel,
                                       boolean useSpecialMappings,
                                       boolean useDefaultMapping)
Description copied from interface: Config
get all Resources that match the given criteria

Specified by:
getPhysicalResources in interface Config
Parameters:
pc - current PageContext
mappings - per application mappings
realPath - path to get PageSource for
onlyTopLevel - checks only toplevel mappings
useSpecialMappings - invoke special mappings like "mapping-tag" or "mapping-customtag"
useDefaultMapping - also invoke the always existing default mapping "/"

getPhysicalResourceExisting

public Resource getPhysicalResourceExisting(PageContext pc,
                                            Mapping[] mappings,
                                            String realPath,
                                            boolean onlyTopLevel,
                                            boolean useSpecialMappings,
                                            boolean useDefaultMapping)
Description copied from interface: Config
return existing Resource that match the given criteria, if there is no Resource null is returned.

Specified by:
getPhysicalResourceExisting in interface Config
Parameters:
pc - current PageContext
mappings - per application mappings
realPath - path to get Resource for
onlyTopLevel - checks only toplevel mappings
useSpecialMappings - invoke special mappings like "mapping-tag" or "mapping-customtag"
useDefaultMapping - also invoke the always existing default mapping "/"

toPageSource

public PageSource toPageSource(Mapping[] mappings,
                               Resource res,
                               PageSource defaultValue)

getConfigDir

public Resource getConfigDir()
Specified by:
getConfigDir in interface Config
Returns:
Returns the configDir.

getConfigFile

public Resource getConfigFile()
Specified by:
getConfigFile in interface Config
Returns:
Returns the configFile.

getScheduleLogger

public LogAndSource getScheduleLogger()
Specified by:
getScheduleLogger in interface Config
Returns:
returns schedule logger

getApplicationLogger

public LogAndSource getApplicationLogger()
Specified by:
getApplicationLogger in interface Config
Returns:
returns the application logger

getDeployLogger

public LogAndSource getDeployLogger()

getScopeLogger

public LogAndSource getScopeLogger()

getCoreTagLib

public TagLib getCoreTagLib()

createTag

public void createTag(TagLib tl,
                      String filename)

createFunction

public void createFunction(FunctionLib fl,
                           String filename)

getORMLogger

public LogAndSource getORMLogger()

getCustomTagMappings

public Mapping[] getCustomTagMappings()
Description copied from interface: Config
return the mapping to custom tag directory

Specified by:
getCustomTagMappings in interface Config
Returns:
custom tag directory

getLoadTime

public long getLoadTime()
Specified by:
getLoadTime in interface Config
Returns:
Returns the loadTime.

getCFXTagPool

public CFXTagPool getCFXTagPool()
                         throws SecurityException
Specified by:
getCFXTagPool in interface Config
Returns:
Returns the configLogger. / public Log getConfigLogger() { return configLogger; }
Throws:
SecurityException

getBaseComponentTemplate

public String getBaseComponentTemplate()
Specified by:
getBaseComponentTemplate in interface Config
Returns:
Returns the baseComponent.

getBaseComponentPageSource

public PageSource getBaseComponentPageSource()
Specified by:
getBaseComponentPageSource in interface Config
Returns:
pagesource of the base component

getBaseComponentPageSource

public PageSource getBaseComponentPageSource(PageContext pc)

getRestList

public boolean getRestList()

getMappingLogger

public LogAndSource getMappingLogger()

getClientType

public short getClientType()
Specified by:
getClientType in interface Config
Returns:
returns the client type

getComponentDataMemberDefaultAccess

public int getComponentDataMemberDefaultAccess()
Specified by:
getComponentDataMemberDefaultAccess in interface Config
Returns:
Returns the componentDataMemberDefaultAccess.

getTimeServer

public String getTimeServer()
Specified by:
getTimeServer in interface Config
Returns:
Returns the timeServer.

getComponentDumpTemplate

public String getComponentDumpTemplate()
Specified by:
getComponentDumpTemplate in interface Config
Returns:
Returns the componentDump.

getSecurityToken

public String getSecurityToken()

getId

public String getId()
Specified by:
getId in interface Config
Returns:
id of the config

getId

public static String getId(String key,
                           String token,
                           String defaultValue)

getSecurityKey

public String getSecurityKey()

getDebugTemplate

public String getDebugTemplate()
Specified by:
getDebugTemplate in interface Config
Returns:
Returns the debug Template.

getErrorTemplate

public String getErrorTemplate(int statusCode)
Specified by:
getErrorTemplate in interface Config
Returns:
Returns the error Template for given status code.

getSessionType

public short getSessionType()
Specified by:
getSessionType in interface Config
Returns:
Returns the sessionType.

getUpdateType

public abstract String getUpdateType()
Specified by:
getUpdateType in interface Config
Returns:
returns update type (auto or manual)

getUpdateLocation

public abstract URL getUpdateLocation()
Specified by:
getUpdateLocation in interface Config
Returns:
returns URL for update

getDeployDirectory

public Resource getDeployDirectory()
Description copied from interface: Config
return directory, where railo deploy translated cfml classes (java and class files)

Specified by:
getDeployDirectory in interface Config
Returns:
deploy directory

getRootDirectory

public abstract Resource getRootDirectory()
Specified by:
getRootDirectory in interface Config
Returns:
Returns the rootDir.

isSuppressWhitespace

public boolean isSuppressWhitespace()
FUTHER Returns the value of suppresswhitespace.

Specified by:
isSuppressWhitespace in interface Config
Returns:
value suppresswhitespace

isSuppressContent

public boolean isSuppressContent()

getDefaultEncoding

public String getDefaultEncoding()
Specified by:
getDefaultEncoding in interface Config

getTemplateCharset

public String getTemplateCharset()
Specified by:
getTemplateCharset in interface Config
Returns:
returns the charset used to read cfml files

getWebCharset

public String getWebCharset()
Specified by:
getWebCharset in interface Config
Returns:
returns the charset for the response and request

getResourceCharset

public String getResourceCharset()
Specified by:
getResourceCharset in interface Config
Returns:
returns the charset used to read and write resources

getSecurityManager

public SecurityManager getSecurityManager()
Specified by:
getSecurityManager in interface Config
Returns:
Returns the accessor.

getFldFile

public Resource getFldFile()
Specified by:
getFldFile in interface Config
Returns:
the fldFile

getTldFile

public Resource getTldFile()
Specified by:
getTldFile in interface Config
Returns:
the tldFile

getDataSources

public DataSource[] getDataSources()
Description copied from interface: Config
return the all datasources

Specified by:
getDataSources in interface Config

getDataSourcesAsMap

public Map<String,DataSource> getDataSourcesAsMap()
Specified by:
getDataSourcesAsMap in interface Config

getMailDefaultEncoding

public String getMailDefaultEncoding()
Specified by:
getMailDefaultEncoding in interface Config
Returns:
the mailDefaultCharset

getDefaultResourceProvider

public ResourceProvider getDefaultResourceProvider()
Specified by:
getDefaultResourceProvider in interface Config
Returns:
the defaultResourceProvider

clearResourceProviders

public void clearResourceProviders()

getResourceProviders

public ResourceProvider[] getResourceProviders()
Specified by:
getResourceProviders in interface Config
Returns:
return the resource providers

getResource

public Resource getResource(String path)
Specified by:
getResource in interface Config
Parameters:
path - get a resource that match this path
Returns:
resource matching path

getApplicationListener

public ApplicationListener getApplicationListener()
Description copied from interface: Config
return current application listener

Specified by:
getApplicationListener in interface Config
Returns:
application listener

getExceptionLogger

public LogAndSource getExceptionLogger()
Specified by:
getExceptionLogger in interface Config
Returns:
the exceptionLogger

getTraceLogger

public LogAndSource getTraceLogger()
Specified by:
getTraceLogger in interface Config
Returns:
the exceptionLogger

getScriptProtect

public int getScriptProtect()
Specified by:
getScriptProtect in interface Config
Returns:
the scriptProtect

getProxyData

public ProxyData getProxyData()
Description copied from interface: Config
return default proxy setting password

Specified by:
getProxyData in interface Config
Returns:
the proxyPassword

isProxyEnableFor

public boolean isProxyEnableFor(String host)
Description copied from interface: Config
return if proxy is enabled or not

Specified by:
isProxyEnableFor in interface Config
Returns:
is proxy enabled

getTriggerComponentDataMember

public boolean getTriggerComponentDataMember()
Specified by:
getTriggerComponentDataMember in interface Config
Returns:
the triggerComponentDataMember

getClientScopeDir

public Resource getClientScopeDir()
Specified by:
getClientScopeDir in interface Config

getSessionScopeDir

public Resource getSessionScopeDir()

getClientScopeDirSize

public long getClientScopeDirSize()
Specified by:
getClientScopeDirSize in interface Config

getSessionScopeDirSize

public long getSessionScopeDirSize()

getRPCClassLoader

public ClassLoader getRPCClassLoader(boolean reload)
                              throws IOException
Specified by:
getRPCClassLoader in interface Config
Throws:
IOException

resetRPCClassLoader

public void resetRPCClassLoader()

getCacheDir

public Resource getCacheDir()
Specified by:
getCacheDir in interface Config

getCacheDirSize

public long getCacheDirSize()
Specified by:
getCacheDirSize in interface Config

getDumpWritersEntries

public DumpWriterEntry[] getDumpWritersEntries()

getDefaultDumpWriter

public DumpWriter getDefaultDumpWriter(int defaultType)
Description copied from interface: Config
returns the default DumpWriter

Specified by:
getDefaultDumpWriter in interface Config
Returns:
default DumpWriter

getDumpWriter

public DumpWriter getDumpWriter(String name)
                         throws DeprecatedException
Description copied from interface: Config
returns the DumpWriter matching key

Specified by:
getDumpWriter in interface Config
Parameters:
name - key for DumpWriter
Returns:
matching DumpWriter
Throws:
DeprecatedException

getDumpWriter

public DumpWriter getDumpWriter(String name,
                                int defaultType)
                         throws ExpressionException
Description copied from interface: Config
returns the DumpWriter matching key

Specified by:
getDumpWriter in interface Config
Parameters:
name - key for DumpWriter
Returns:
matching DumpWriter
Throws:
ExpressionException

useComponentShadow

public boolean useComponentShadow()
Description copied from interface: Config
define if components has a "shadow" in the component variables scope or not.

Specified by:
useComponentShadow in interface Config
Returns:

useComponentPathCache

public boolean useComponentPathCache()

useCTPathCache

public boolean useCTPathCache()

flushComponentPathCache

public void flushComponentPathCache()

flushCTPathCache

public void flushCTPathCache()

getDataSource

public DataSource getDataSource(String datasource)
                         throws DatabaseException
Specified by:
getDataSource in interface Config
Throws:
DatabaseException

getDataSource

public DataSource getDataSource(String datasource,
                                DataSource defaultValue)
Specified by:
getDataSource in interface Config

getErrWriter

public PrintWriter getErrWriter()
Specified by:
getErrWriter in interface Config
Returns:
returns the error print writer stream

getOutWriter

public PrintWriter getOutWriter()
Specified by:
getOutWriter in interface Config
Returns:
returns the out print writer stream

getDatasourceConnectionPool

public DatasourceConnectionPool getDatasourceConnectionPool()

doLocalCustomTag

public boolean doLocalCustomTag()
Description copied from interface: Config
define if railo search in local directory for custom tags or not

Specified by:
doLocalCustomTag in interface Config
Returns:
search in local dir?

getCustomTagExtensions

public String[] getCustomTagExtensions()
Specified by:
getCustomTagExtensions in interface Config

doComponentDeepSearch

public boolean doComponentDeepSearch()

doCustomTagDeepSearch

public boolean doCustomTagDeepSearch()
Specified by:
doCustomTagDeepSearch in interface Config

getVersion

public double getVersion()
Specified by:
getVersion in interface Config
Returns:
the version

closeConnection

public boolean closeConnection()

contentLength

public boolean contentLength()

allowCompression

public boolean allowCompression()

getConstants

public Struct getConstants()
Specified by:
getConstants in interface Config
Returns:
the constants

isShowVersion

public boolean isShowVersion()
Specified by:
isShowVersion in interface Config
Returns:
the showVersion

getRemoteClients

public RemoteClient[] getRemoteClients()
Specified by:
getRemoteClients in interface Config

getSpoolerEngine

public SpoolerEngine getSpoolerEngine()
Specified by:
getSpoolerEngine in interface Config

getRemoteClientDirectory

public Resource getRemoteClientDirectory()
Specified by:
getRemoteClientDirectory in interface Config
Returns:
the remoteClientDirectory

getRemoteClientLog

public LogAndSource getRemoteClientLog()
Specified by:
getRemoteClientLog in interface Config
Returns:
the remoteClientLog

getFactory

public CFMLFactory getFactory()
Specified by:
getFactory in interface Config
Returns:
the factory

getErrorStatusCode

public boolean getErrorStatusCode()
Specified by:
getErrorStatusCode in interface Config
Returns:
if error status code will be returned or not

getLocalMode

public int getLocalMode()
Specified by:
getLocalMode in interface Config

getVideoDirectory

public Resource getVideoDirectory()
Specified by:
getVideoDirectory in interface Config

getExtensionDirectory

public Resource getExtensionDirectory()
Specified by:
getExtensionDirectory in interface Config

getExtensionProviders

public ExtensionProvider[] getExtensionProviders()
Specified by:
getExtensionProviders in interface Config

getExtensions

public Extension[] getExtensions()
Specified by:
getExtensions in interface Config

isExtensionEnabled

public boolean isExtensionEnabled()
Specified by:
isExtensionEnabled in interface Config

allowRealPath

public boolean allowRealPath()
Specified by:
allowRealPath in interface Config

getClusterClass

public Class getClusterClass()
Specified by:
getClusterClass in interface Config
Returns:
the classClusterScope

getRemoteClientUsage

public Struct getRemoteClientUsage()
Specified by:
getRemoteClientUsage in interface Config

getAdminSyncClass

public Class getAdminSyncClass()
Specified by:
getAdminSyncClass in interface Config

getAdminSync

public AdminSync getAdminSync()
                       throws ClassException
Throws:
ClassException

getVideoExecuterClass

public Class getVideoExecuterClass()
Specified by:
getVideoExecuterClass in interface Config

getUseTimeServer

public boolean getUseTimeServer()

getTagMapping

public Mapping getTagMapping()
Returns:
the tagMappings

getFunctionMapping

public Mapping getFunctionMapping()

getTagDirectory

public Resource getTagDirectory()
Returns:
the tagDirectory

setAMFCaster

public void setAMFCaster(String strCaster,
                         Map args)

setAMFCaster

public void setAMFCaster(Class clazz,
                         Map args)

setAMFConfigType

public void setAMFConfigType(String strDeploy)

setAMFConfigType

public void setAMFConfigType(int amfDeploy)

getAMFConfigType

public int getAMFConfigType()

getAMFCaster

public AMFCaster getAMFCaster(flex.messaging.config.ConfigMap properties)
                       throws ClassException
Throws:
ClassException

getAMFCasterClass

public Class getAMFCasterClass()

getAMFCasterArguments

public Map getAMFCasterArguments()

getDefaultDataSource

public String getDefaultDataSource()
Specified by:
getDefaultDataSource in interface Config

getInspectTemplate

public short getInspectTemplate()
Specified by:
getInspectTemplate in interface Config
Returns:
the inspectTemplate

getSerialNumber

public String getSerialNumber()

getCacheConnections

public Map<String,CacheConnection> getCacheConnections()
Specified by:
getCacheConnections in interface Config

getCacheDefaultConnection

public CacheConnection getCacheDefaultConnection(int type)
Description copied from interface: Config
get default cache connection for a specific type

Specified by:
getCacheDefaultConnection in interface Config
Parameters:
type - default type, one of the following (CACHE_DEFAULT_NONE, CACHE_DEFAULT_OBJECT, CACHE_DEFAULT_TEMPLATE, CACHE_DEFAULT_QUERY, CACHE_DEFAULT_RESOURCE)
Returns:
matching Cache Connection

getCacheDefaultConnectionName

public String getCacheDefaultConnectionName(int type)
Description copied from interface: Config
get name of a default cache connection for a specific type

Specified by:
getCacheDefaultConnectionName in interface Config
Parameters:
type - default type, one of the following (CACHE_DEFAULT_NONE, CACHE_DEFAULT_OBJECT, CACHE_DEFAULT_TEMPLATE, CACHE_DEFAULT_QUERY, CACHE_DEFAULT_RESOURCE)
Returns:
name of matching Cache Connection

getCacheMD5

public String getCacheMD5()

setCacheMD5

public void setCacheMD5(String cacheMD5)

getExecutionLogEnabled

public boolean getExecutionLogEnabled()

getExecutionLogFactory

public ExecutionLogFactory getExecutionLogFactory()

resetORMEngine

public ORMEngine resetORMEngine(PageContext pc,
                                boolean force)
                         throws PageException
Throws:
PageException

getORMEngine

public ORMEngine getORMEngine(PageContext pc)
                       throws PageException
Throws:
PageException

getORMEngineClass

public Class<ORMEngine> getORMEngineClass()

getComponentMappings

public Mapping[] getComponentMappings()
Specified by:
getComponentMappings in interface Config

getORMConfig

public ORMConfiguration getORMConfig()

createCustomTagAppMappings

public Mapping createCustomTagAppMappings(String virtual,
                                          String physical)

getCachedPage

public Page getCachedPage(PageContext pc,
                          String pathWithCFC)
                   throws PageException
Throws:
PageException

putCachedPageSource

public void putCachedPageSource(String pathWithCFC,
                                PageSource ps)

getCTInitFile

public InitFile getCTInitFile(PageContext pc,
                              String key)

putCTInitFile

public void putCTInitFile(String key,
                          InitFile initFile)

listCTCache

public Struct listCTCache()

clearCTCache

public void clearCTCache()

clearFunctionCache

public void clearFunctionCache()

getFromFunctionCache

public UDF getFromFunctionCache(String key)

putToFunctionCache

public void putToFunctionCache(String key,
                               UDF udf)

listComponentCache

public Struct listComponentCache()

clearComponentCache

public void clearComponentCache()

getComponentDefaultImport

public ImportDefintion getComponentDefaultImport()

getComponentLocalSearch

public boolean getComponentLocalSearch()
Returns:
the componentLocalSearch

getComponentRootSearch

public boolean getComponentRootSearch()
Returns:
the componentLocalSearch

getCompressInstance

public Compress getCompressInstance(Resource zipFile,
                                    int format,
                                    boolean caseSensitive)

getSessionCluster

public boolean getSessionCluster()
Specified by:
getSessionCluster in interface Config

getClientCluster

public boolean getClientCluster()
Specified by:
getClientCluster in interface Config

getComponentMetadata

public ConfigImpl.ComponentMetaData getComponentMetadata(String key)

putComponentMetadata

public void putComponentMetadata(String key,
                                 ConfigImpl.ComponentMetaData data)

clearComponentMetadata

public void clearComponentMetadata()

getDebugEntries

public DebugEntry[] getDebugEntries()

getDebugEntry

public DebugEntry getDebugEntry(String ip,
                                DebugEntry defaultValue)

getDebugMaxRecordsLogged

public int getDebugMaxRecordsLogged()

getLoginDelay

public abstract int getLoginDelay()

getLoginCaptcha

public abstract boolean getLoginCaptcha()

getDotNotationUpperCase

public boolean getDotNotationUpperCase()

getSupressWSBeforeArg

public boolean getSupressWSBeforeArg()

getFullNullSupport

public abstract boolean getFullNullSupport()

createClusterScope

public abstract Cluster createClusterScope()
                                    throws PageException
Throws:
PageException

getRestSetting

public RestSettings getRestSetting()
Specified by:
getRestSetting in interface Config

getMode

public int getMode()

getCFMLWriterType

public int getCFMLWriterType()

getBufferOutput

public boolean getBufferOutput()

getDebugOptions

public int getDebugOptions()

hasDebugOptions

public boolean hasDebugOptions(int debugOption)

getAllMappings

public static Mapping[] getAllMappings(PageContext pc)

getAllMappings

public static Mapping[] getAllMappings(ConfigWeb cw)

checkForChangesInConfigFile

public boolean checkForChangesInConfigFile()


Copyright © 2012 Railo