railo.runtime.listener
Class ClassicApplicationContext
java.lang.Object
railo.runtime.listener.ApplicationContextSupport
railo.runtime.listener.ClassicApplicationContext
- All Implemented Interfaces:
- Serializable, ApplicationContext, ApplicationContextPro
public class ClassicApplicationContext
- extends ApplicationContextSupport
- See Also:
- Serialized Form
ClassicApplicationContext
public ClassicApplicationContext(Config config,
String name,
boolean isDefault,
Resource source)
- constructor of the class
- Parameters:
config
-
duplicate
public ApplicationContext duplicate()
getApplicationTimeout
public TimeSpan getApplicationTimeout()
- Returns:
- Returns the applicationTimeout.
setApplicationTimeout
public void setApplicationTimeout(TimeSpan applicationTimeout)
- Parameters:
applicationTimeout
- The applicationTimeout to set.
getLoginStorage
public int getLoginStorage()
- Returns:
- Returns the loginStorage.
setLoginStorage
public void setLoginStorage(int loginStorage)
- Parameters:
loginStorage
- The loginStorage to set.
setLoginStorage
public void setLoginStorage(String strLoginStorage)
throws ApplicationException
- Throws:
ApplicationException
getName
public String getName()
- Returns:
- Returns the name.
setName
public void setName(String name)
- Parameters:
name
- The name to set.
getSessionTimeout
public TimeSpan getSessionTimeout()
- Returns:
- Returns the sessionTimeout.
setSessionTimeout
public void setSessionTimeout(TimeSpan sessionTimeout)
- Parameters:
sessionTimeout
- The sessionTimeout to set.
getClientTimeout
public TimeSpan getClientTimeout()
setClientTimeout
public void setClientTimeout(TimeSpan clientTimeout)
- Parameters:
sessionTimeout
- The sessionTimeout to set.
isSetClientCookies
public boolean isSetClientCookies()
- Returns:
- Returns the setClientCookies.
setSetClientCookies
public void setSetClientCookies(boolean setClientCookies)
- Parameters:
setClientCookies
- The setClientCookies to set.
isSetClientManagement
public boolean isSetClientManagement()
- Returns:
- Returns the setClientManagement.
setSetClientManagement
public void setSetClientManagement(boolean setClientManagement)
- Parameters:
setClientManagement
- The setClientManagement to set.
isSetDomainCookies
public boolean isSetDomainCookies()
- Returns:
- Returns the setDomainCookies.
setSetDomainCookies
public void setSetDomainCookies(boolean setDomainCookies)
- Parameters:
setDomainCookies
- The setDomainCookies to set.
isSetSessionManagement
public boolean isSetSessionManagement()
- Returns:
- Returns the setSessionManagement.
setSetSessionManagement
public void setSetSessionManagement(boolean setSessionManagement)
- Parameters:
setSessionManagement
- The setSessionManagement to set.
getClientstorage
public String getClientstorage()
- Returns:
- Returns the clientstorage.
getSessionstorage
public String getSessionstorage()
setClientstorage
public void setClientstorage(String clientstorage)
- Parameters:
clientstorage
- The clientstorage to set.
setSessionstorage
public void setSessionstorage(String sessionstorage)
hasName
public boolean hasName()
- Returns:
- if application context has a name
setScriptProtect
public void setScriptProtect(int scriptProtect)
- Parameters:
scriptProtect
- The scriptProtect to set.
getScriptProtect
public int getScriptProtect()
- Returns:
- return script protect setting
setMappings
public void setMappings(Mapping[] mappings)
getMappings
public Mapping[] getMappings()
- Returns:
- the mappings
setCustomTagMappings
public void setCustomTagMappings(Mapping[] ctmappings)
getCustomTagMappings
public Mapping[] getCustomTagMappings()
setComponentMappings
public void setComponentMappings(Mapping[] cmappings)
getComponentMappings
public Mapping[] getComponentMappings()
setSecureJson
public void setSecureJson(boolean secureJson)
getSecureJson
public boolean getSecureJson()
- Returns:
- the secureJson
getBufferOutput
public boolean getBufferOutput()
setBufferOutput
public void setBufferOutput(boolean bufferOutput)
setSecureJsonPrefix
public void setSecureJsonPrefix(String secureJsonPrefix)
getSecureJsonPrefix
public String getSecureJsonPrefix()
- Returns:
- the secureJsonPrefix
getDefaultDataSource
public String getDefaultDataSource()
getDefDataSource
public Object getDefDataSource()
- Description copied from interface:
ApplicationContextPro
- default datasource name (String) or datasource (DataSource Object)
- Returns:
setDefaultDataSource
public void setDefaultDataSource(String defaultDataSource)
setDefDataSource
public void setDefDataSource(Object defaultDataSource)
isORMEnabled
public boolean isORMEnabled()
getORMDatasource
public String getORMDatasource()
getORMDataSource
public Object getORMDataSource()
- Description copied from interface:
ApplicationContextPro
- orm datasource name (String) or datasource (DataSource Object)
- Returns:
getORMConfiguration
public ORMConfiguration getORMConfiguration()
setORMConfiguration
public void setORMConfiguration(ORMConfiguration config)
setORMEnabled
public void setORMEnabled(boolean ormEnabled)
getS3
public Properties getS3()
- Returns:
- the s3
getLocalMode
public int getLocalMode()
- Returns:
- the localMode
setLocalMode
public void setLocalMode(int localMode)
- Parameters:
localMode
- the localMode to set
getSessionType
public short getSessionType()
- Returns:
- the sessionType
setSessionType
public void setSessionType(short sessionType)
getSessionCluster
public boolean getSessionCluster()
- Returns:
- the sessionCluster
setSessionCluster
public void setSessionCluster(boolean sessionCluster)
- Parameters:
sessionCluster
- the sessionCluster to set
getClientCluster
public boolean getClientCluster()
- Returns:
- the clientCluster
setClientCluster
public void setClientCluster(boolean clientCluster)
- Parameters:
clientCluster
- the clientCluster to set
setS3
public void setS3(Properties s3)
setORMDatasource
public void setORMDatasource(String ormdatasource)
setORMDataSource
public void setORMDataSource(Object ormdatasource)
reinitORM
public void reinitORM(PageContext pc)
throws PageException
- Throws:
PageException
getSource
public Resource getSource()
getTriggerComponentDataMember
public boolean getTriggerComponentDataMember()
setTriggerComponentDataMember
public void setTriggerComponentDataMember(boolean triggerComponentDataMember)
setDefaultCacheName
public void setDefaultCacheName(int type,
String name)
getDefaultCacheName
public String getDefaultCacheName(int type)
- Description copied from interface:
ApplicationContext
- return the default cache name for a certain type
- Parameters:
type
- can be one of the following constants Config.CACHE_DEFAULT_OBJECT, Config.CACHE_DEFAULT_TEMPLATE, Config.CACHE_DEFAULT_QUERY, Config.CACHE_DEFAULT_RESOURCE, Config.CACHE_DEFAULT_FUNCTION
- Returns:
- name of the cache defined
setSameFieldAsArray
public void setSameFieldAsArray(int scope,
boolean sameFieldAsArray)
getSameFieldAsArray
public boolean getSameFieldAsArray(int scope)
- Description copied from interface:
ApplicationContext
- merge the field with same name to array if true, otherwise to a comma separated string list
- Parameters:
scope
- scope type, one of the following: Scope.SCOPE_FORM or Scope.SCOPE_URL
- Returns:
getRestSettings
public RestSettings getRestSettings()
setRestSettings
public void setRestSettings(RestSettings restSettings)
setRestCFCLocations
public void setRestCFCLocations(Resource[] restCFCLocations)
getRestCFCLocations
public Resource[] getRestCFCLocations()
getJavaSettings
public JavaSettings getJavaSettings()
getDataSources
public DataSource[] getDataSources()
setDataSources
public void setDataSources(DataSource[] dataSources)
setOnMissingTemplate
public void setOnMissingTemplate(UDF onMissingTemplate)
getOnMissingTemplate
public UDF getOnMissingTemplate()
Copyright © 2012 Railo