Package com.sun.enterprise.web
Class ServerConfigLookup
- java.lang.Object
-
- com.sun.enterprise.web.ServerConfigLookup
-
@Service @PerLookup public class ServerConfigLookup extends Object
-
-
Constructor Summary
Constructors Constructor Description ServerConfigLookup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
calculateWebAvailabilityEnabledFromConfig()
Get the availability-enabled from domain.xml.boolean
calculateWebAvailabilityEnabledFromConfig(WebModule ctx)
Get the availability-enabled from domain.xml.boolean
getAsyncReplicationFromConfig(WebModule ctx)
boolean
getAvailabilityEnabledFromConfig()
Get the availability-enabled from domain.xml.protected AvailabilityService
getAvailabilityService()
Get the availability-service element from domain.xml.boolean
getDisableJreplicaFromConfig()
SessionManager
getInstanceSessionManager()
Get the session manager bean from domain.xml return null if not defined or other problemManagerProperties
getInstanceSessionManagerManagerProperties()
Get the manager properties bean from domain.xml return null if not defined or other problemStoreProperties
getInstanceSessionManagerStoreProperties()
Get the store properties bean from domain.xml return null if not defined or other problemSessionProperties
getInstanceSessionProperties()
Get the session properties bean from server.xml return null if not defined or other problemString
getPersistenceFrequencyFromConfig()
Get the persistenceFrequency from domain.xml.String
getPersistenceScopeFromConfig()
Get the persistenceScope from domain.xml.PersistenceType
getPersistenceTypeFromConfig()
Get the persistenceType from domain.xml.boolean
getWebContainerAvailabilityEnabledFromConfig()
Get the availability-enabled for the web container from domain.xml.protected String
getWebContainerAvailabilityPropertyString(String propName)
Get the String value of the property under web-container-availability element from domain.xml whose name matches propName return null if not foundprotected String
getWebContainerAvailabilityPropertyString(String propName, String defaultValue)
Get the String value of the property under web-container-availability element from domain.xml whose name matches propName return defaultValue if not foundboolean
isSsoFailoverEnabledFromConfig()
Get the sso-failover-enabled boolean from domain.xml.protected Boolean
toBoolean(String value)
convert the input value to the appropriate Boolean value if input value is null, return null
-
-
-
Method Detail
-
getInstanceSessionManager
public SessionManager getInstanceSessionManager()
Get the session manager bean from domain.xml return null if not defined or other problem
-
getInstanceSessionManagerManagerProperties
public ManagerProperties getInstanceSessionManagerManagerProperties()
Get the manager properties bean from domain.xml return null if not defined or other problem
-
getInstanceSessionManagerStoreProperties
public StoreProperties getInstanceSessionManagerStoreProperties()
Get the store properties bean from domain.xml return null if not defined or other problem
-
getInstanceSessionProperties
public SessionProperties getInstanceSessionProperties()
Get the session properties bean from server.xml return null if not defined or other problem
-
getAvailabilityService
protected AvailabilityService getAvailabilityService()
Get the availability-service element from domain.xml. return null if not found
-
getAvailabilityEnabledFromConfig
public boolean getAvailabilityEnabledFromConfig()
Get the availability-enabled from domain.xml. return false if not found
-
getWebContainerAvailabilityPropertyString
protected String getWebContainerAvailabilityPropertyString(String propName)
Get the String value of the property under web-container-availability element from domain.xml whose name matches propName return null if not found- Parameters:
propName
-
-
getWebContainerAvailabilityPropertyString
protected String getWebContainerAvailabilityPropertyString(String propName, String defaultValue)
Get the String value of the property under web-container-availability element from domain.xml whose name matches propName return defaultValue if not found- Parameters:
propName
-
-
getWebContainerAvailabilityEnabledFromConfig
public boolean getWebContainerAvailabilityEnabledFromConfig()
Get the availability-enabled for the web container from domain.xml. return inherited global availability-enabled if not found
-
isSsoFailoverEnabledFromConfig
public boolean isSsoFailoverEnabledFromConfig()
Get the sso-failover-enabled boolean from domain.xml.
-
calculateWebAvailabilityEnabledFromConfig
public boolean calculateWebAvailabilityEnabledFromConfig()
Get the availability-enabled from domain.xml. This takes into account: global web-container-availability return false if not found
-
calculateWebAvailabilityEnabledFromConfig
public boolean calculateWebAvailabilityEnabledFromConfig(WebModule ctx)
Get the availability-enabled from domain.xml. This takes into account: global web-container-availability web-module (if stand-alone) return false if not found
-
getAsyncReplicationFromConfig
public boolean getAsyncReplicationFromConfig(WebModule ctx)
-
getPersistenceTypeFromConfig
public PersistenceType getPersistenceTypeFromConfig()
Get the persistenceType from domain.xml. return null if not found
-
getPersistenceFrequencyFromConfig
public String getPersistenceFrequencyFromConfig()
Get the persistenceFrequency from domain.xml. return null if not found
-
getPersistenceScopeFromConfig
public String getPersistenceScopeFromConfig()
Get the persistenceScope from domain.xml. return null if not found
-
getDisableJreplicaFromConfig
public boolean getDisableJreplicaFromConfig()
-
-