railo.runtime.listener
Class ModernApplicationContext

java.lang.Object
  extended by railo.runtime.listener.ApplicationContextSupport
      extended by railo.runtime.listener.ModernApplicationContext
All Implemented Interfaces:
Serializable, ApplicationContext, ApplicationContextPro

public class ModernApplicationContext
extends ApplicationContextSupport

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface railo.runtime.listener.ApplicationContext
SCRIPT_PROTECT_ALL, SCRIPT_PROTECT_CGI, SCRIPT_PROTECT_COOKIE, SCRIPT_PROTECT_FORM, SCRIPT_PROTECT_NONE, SCRIPT_PROTECT_URL
 
Constructor Summary
ModernApplicationContext(PageContext pc, ComponentAccess cfc, RefBoolean throwsErrorWhileInit)
           
 
Method Summary
 boolean _getBufferOutput()
           
 TimeSpan getApplicationTimeout()
           
 boolean getBufferOutput()
           
 boolean getClientCluster()
           
 String getClientstorage()
           
 TimeSpan getClientTimeout()
           
 ComponentAccess getComponent()
           
 Mapping[] getComponentMappings()
           
 Object getCustom(Collection.Key key)
           
 Mapping[] getCustomTagMappings()
           
 DataSource[] getDataSources()
           
 String getDefaultCacheName(int type)
          return the default cache name for a certain type
 String getDefaultDataSource()
           
 Object getDefDataSource()
          default datasource name (String) or datasource (DataSource Object)
 JavaSettings getJavaSettings()
           
 int getLocalMode()
           
 int getLoginStorage()
           
 Mapping[] getMappings()
           
 String getName()
           
 ORMConfiguration getORMConfiguration()
           
 String getORMDatasource()
           
 Object getORMDataSource()
          orm datasource name (String) or datasource (DataSource Object)
 Resource[] getRestCFCLocations()
           
 RestSettings getRestSettings()
           
 Properties getS3()
           
 boolean getSameFieldAsArray(int scope)
          merge the field with same name to array if true, otherwise to a comma separated string list
 int getScriptProtect()
           
 boolean getSecureJson()
           
 String getSecureJsonPrefix()
           
 boolean getSessionCluster()
           
 String getSessionstorage()
           
 TimeSpan getSessionTimeout()
           
 short getSessionType()
           
 Resource getSource()
           
 boolean getTriggerComponentDataMember()
           
 boolean hasName()
           
 boolean isORMEnabled()
           
 boolean isSetClientCookies()
           
 boolean isSetClientManagement()
           
 boolean isSetDomainCookies()
           
 boolean isSetSessionManagement()
           
 void reinitORM(PageContext pc)
           
 void setApplicationTimeout(TimeSpan applicationTimeout)
           
 void setBufferOutput(boolean bufferOutput)
           
 void setClientCluster(boolean clientCluster)
           
 void setClientstorage(String clientstorage)
           
 void setClientTimeout(TimeSpan clientTimeout)
           
 void setComponentMappings(Mapping[] componentMappings)
           
 void setCustomTagMappings(Mapping[] customTagMappings)
           
 void setDataSources(DataSource[] dataSources)
           
 void setDefaultCacheName(int type, String cacheName)
           
 void setDefaultDataSource(String datasource)
           
 void setDefDataSource(Object datasource)
           
 void setLocalMode(int localMode)
           
 void setLoginStorage(int loginStorage)
           
 void setMappings(Mapping[] mappings)
           
 void setORMConfiguration(ORMConfiguration ormConfig)
           
 void setORMDataSource(Object ormDatasource)
           
 void setORMDatasource(String ormDatasource)
           
 void setORMEnabled(boolean ormEnabled)
           
 void setS3(Properties s3)
           
 void setScriptProtect(int scriptrotect)
           
 void setSecureJson(boolean secureJson)
           
 void setSecureJsonPrefix(String secureJsonPrefix)
           
 void setSessionCluster(boolean sessionCluster)
           
 void setSessionstorage(String sessionstorage)
           
 void setSessionTimeout(TimeSpan sessionTimeout)
           
 void setSessionType(short sessionType)
           
 void setSetClientCookies(boolean setClientCookies)
           
 void setSetClientManagement(boolean setClientManagement)
           
 void setSetDomainCookies(boolean setDomainCookies)
           
 void setSetSessionManagement(boolean setSessionManagement)
           
 void setTriggerComponentDataMember(boolean triggerComponentDataMember)
           
static Object toDefaultDatasource(Object o)
           
 
Methods inherited from class railo.runtime.listener.ApplicationContextSupport
getDataSource, getDataSource, getSecurityApplicationToken, getSecurityCookieDomain, getSecurityIdleTimeout, setSecuritySettings
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModernApplicationContext

public ModernApplicationContext(PageContext pc,
                                ComponentAccess cfc,
                                RefBoolean throwsErrorWhileInit)
Method Detail

reinitORM

public void reinitORM(PageContext pc)
               throws PageException
Throws:
PageException

toDefaultDatasource

public static Object toDefaultDatasource(Object o)
                                  throws PageException
Throws:
PageException

hasName

public boolean hasName()
Returns:
if application context has a name

getName

public String getName()
Returns:
Returns the name.

getLoginStorage

public int getLoginStorage()
Returns:
Returns the loginStorage.

getApplicationTimeout

public TimeSpan getApplicationTimeout()
Returns:
Returns the applicationTimeout.

getSessionTimeout

public TimeSpan getSessionTimeout()
Returns:
Returns the sessionTimeout.

getClientTimeout

public TimeSpan getClientTimeout()

isSetClientCookies

public boolean isSetClientCookies()
Returns:
Returns the setClientCookies.

isSetClientManagement

public boolean isSetClientManagement()
Returns:
Returns the setClientManagement.

isSetDomainCookies

public boolean isSetDomainCookies()
Returns:
Returns the setDomainCookies.

isSetSessionManagement

public boolean isSetSessionManagement()
Returns:
Returns the setSessionManagement.

getClientstorage

public String getClientstorage()
Returns:
Returns the clientstorage.

getScriptProtect

public int getScriptProtect()
Returns:
return script protect setting

getSecureJsonPrefix

public String getSecureJsonPrefix()

getSecureJson

public boolean getSecureJson()

getSessionstorage

public String getSessionstorage()

getSessionCluster

public boolean getSessionCluster()

getClientCluster

public boolean getClientCluster()

getSessionType

public short getSessionType()

getTriggerComponentDataMember

public boolean getTriggerComponentDataMember()

setTriggerComponentDataMember

public void setTriggerComponentDataMember(boolean triggerComponentDataMember)

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:

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

setDefaultCacheName

public void setDefaultCacheName(int type,
                                String cacheName)

getMappings

public Mapping[] getMappings()

getCustomTagMappings

public Mapping[] getCustomTagMappings()

getComponentMappings

public Mapping[] getComponentMappings()

getLocalMode

public int getLocalMode()

getBufferOutput

public boolean getBufferOutput()

_getBufferOutput

public boolean _getBufferOutput()

getS3

public Properties getS3()

getDefaultDataSource

public String getDefaultDataSource()

getDefDataSource

public Object getDefDataSource()
Description copied from interface: ApplicationContextPro
default datasource name (String) or datasource (DataSource Object)

Returns:

getDataSources

public DataSource[] getDataSources()

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()

getComponent

public ComponentAccess getComponent()

getCustom

public Object getCustom(Collection.Key key)

setApplicationTimeout

public void setApplicationTimeout(TimeSpan applicationTimeout)

setSessionTimeout

public void setSessionTimeout(TimeSpan sessionTimeout)

setClientTimeout

public void setClientTimeout(TimeSpan clientTimeout)

setClientstorage

public void setClientstorage(String clientstorage)

setSessionstorage

public void setSessionstorage(String sessionstorage)

setCustomTagMappings

public void setCustomTagMappings(Mapping[] customTagMappings)

setComponentMappings

public void setComponentMappings(Mapping[] componentMappings)

setMappings

public void setMappings(Mapping[] mappings)

setDataSources

public void setDataSources(DataSource[] dataSources)

setLoginStorage

public void setLoginStorage(int loginStorage)

setDefaultDataSource

public void setDefaultDataSource(String datasource)

setDefDataSource

public void setDefDataSource(Object datasource)

setScriptProtect

public void setScriptProtect(int scriptrotect)

setSecureJson

public void setSecureJson(boolean secureJson)

setSecureJsonPrefix

public void setSecureJsonPrefix(String secureJsonPrefix)

setSetClientCookies

public void setSetClientCookies(boolean setClientCookies)

setSetClientManagement

public void setSetClientManagement(boolean setClientManagement)

setSetDomainCookies

public void setSetDomainCookies(boolean setDomainCookies)

setSetSessionManagement

public void setSetSessionManagement(boolean setSessionManagement)

setLocalMode

public void setLocalMode(int localMode)

setBufferOutput

public void setBufferOutput(boolean bufferOutput)

setSessionType

public void setSessionType(short sessionType)

setClientCluster

public void setClientCluster(boolean clientCluster)

setSessionCluster

public void setSessionCluster(boolean sessionCluster)

setS3

public void setS3(Properties s3)

setORMEnabled

public void setORMEnabled(boolean ormEnabled)

setORMConfiguration

public void setORMConfiguration(ORMConfiguration ormConfig)

setORMDatasource

public void setORMDatasource(String ormDatasource)

setORMDataSource

public void setORMDataSource(Object ormDatasource)

getSource

public Resource getSource()

getRestSettings

public RestSettings getRestSettings()

getRestCFCLocations

public Resource[] getRestCFCLocations()

getJavaSettings

public JavaSettings getJavaSettings()


Copyright © 2012 Railo