pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.service
Class ServletConfig

java.lang.Object
  extended by org.torweg.pulse.configuration.AbstractConfigBean
      extended by org.torweg.pulse.service.ServletConfig
All Implemented Interfaces:
java.io.Serializable, ConfigBean

public class ServletConfig
extends AbstractConfigBean

Version:
$Revision: 1932 $
Author:
Thomas Weber, Christian Schatt
See Also:
Serialized Form

Constructor Summary
ServletConfig()
           
 
Method Summary
 PoorMansCacheConfiguration getCacheConfiguration()
          returns the configuration for the PoorMansCache.
 java.lang.Class<? extends ICaptchaAdapter<Configuration>> getCaptchaAdapter()
          Returns the ICaptchaAdapter if configured.
 int getDefaultPort()
          returns the port to be used for standard HTTP connections.
 java.lang.String getFopPath()
          Returns the path the fop-directory.
 java.lang.Class<? extends IGeoLocationProvider> getGeoLocationProvider()
          get the class of the IGeoLocationProvider implementation.
 org.jdom.Element getHibernateConfiguration()
          returns the HibernateTM core configuration as a JDOM Element.
 java.lang.String getHibernateJNDIName()
           
 java.io.File getHibernateSearchIndexBase()
           
 Invoker getInvoker()
          get the implementation of the invoker.
 java.lang.String getJAXBPackages()
           
 org.jdom.Element getJobletSchedulerConfiguration()
           
 org.jdom.Element getMailQueueConfiguration()
           
 org.jdom.Element getPostHibernateStartUpSQL()
          returns the custom SQL that is to be executed directly after setting up HibernateTM.
 long getReloadInterval()
           
 int getSecurePort()
          returns the port to be used for secure (HTTPS) connections.
 java.lang.String getServerSalt()
          return the salt for the server.
 ServiceRequest getServiceRequest()
          get the implementation of the service request.
 java.lang.String getVersioningPrefix()
          return the versioning prefix (see: VersionRewriteFilter).
 org.jdom.Element getVFSConfiguration()
           
 Action.Security getWeakestCommandSecurityLevel()
          returns the weakest security level Action.Security to be honoured, if TLS is available.
 void init(org.jdom.Element conf)
          initialises the bean.
 boolean isReloadable()
           
 boolean isTransportLayerSecurityAvailable()
          indicates whether pulse is configured to use TLS.
 
Methods inherited from class org.torweg.pulse.configuration.AbstractConfigBean
buildClass, buildInstance, lastModified, setLastModified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletConfig

public ServletConfig()
Method Detail

init

public final void init(org.jdom.Element conf)
initialises the bean.

Parameters:
conf - the config XML

getServiceRequest

public final ServiceRequest getServiceRequest()
get the implementation of the service request.

Returns:
an instance of the implementing class

getInvoker

public final Invoker getInvoker()
get the implementation of the invoker.

Returns:
the invoker

getGeoLocationProvider

public final java.lang.Class<? extends IGeoLocationProvider> getGeoLocationProvider()
get the class of the IGeoLocationProvider implementation.

Returns:
the class of the IGeoLocationProvider implementation

getCaptchaAdapter

public final java.lang.Class<? extends ICaptchaAdapter<Configuration>> getCaptchaAdapter()
Returns the ICaptchaAdapter if configured.

Returns:
the ICaptchaAdapter if configured, null otherwise

getFopPath

public final java.lang.String getFopPath()
Returns the path the fop-directory.

Returns:
the path the fop-directory

getJAXBPackages

public final java.lang.String getJAXBPackages()
Returns:
the JAXB endorsed packages.

isReloadable

public final boolean isReloadable()
Returns:
true, if the container is configured to be reloadable.

getReloadInterval

public final long getReloadInterval()
Returns:
the reload interval in milliseconds.

getHibernateConfiguration

public final org.jdom.Element getHibernateConfiguration()
returns the HibernateTM core configuration as a JDOM Element.

Returns:
the HibernateTM core configuration as a JDOM Element

getHibernateJNDIName

public final java.lang.String getHibernateJNDIName()
Returns:
the JNDI name for the HibernateTM SessionFactory

getHibernateSearchIndexBase

public final java.io.File getHibernateSearchIndexBase()
Returns:
the base directory of the LuceneTM indexes created by HibernateTM Search.

getPostHibernateStartUpSQL

public final org.jdom.Element getPostHibernateStartUpSQL()
returns the custom SQL that is to be executed directly after setting up HibernateTM.

Returns:
the custom SQL

getVFSConfiguration

public final org.jdom.Element getVFSConfiguration()
Returns:
the configuration for the virtual file system

getJobletSchedulerConfiguration

public final org.jdom.Element getJobletSchedulerConfiguration()
Returns:
the configuration for the joblet scheduler

getMailQueueConfiguration

public final org.jdom.Element getMailQueueConfiguration()
Returns:
the configuration for the MailQueue

isTransportLayerSecurityAvailable

public final boolean isTransportLayerSecurityAvailable()
indicates whether pulse is configured to use TLS.

Returns:
true, if TLS is available

getWeakestCommandSecurityLevel

public final Action.Security getWeakestCommandSecurityLevel()
returns the weakest security level Action.Security to be honoured, if TLS is available.

Returns:
the weakest security level to be honoured

getDefaultPort

public final int getDefaultPort()
returns the port to be used for standard HTTP connections.

Returns:
the port to be used for standard HTTP connections

getSecurePort

public final int getSecurePort()
returns the port to be used for secure (HTTPS) connections.

Returns:
the port to be used for secure (HTTPS) connections

getServerSalt

public final java.lang.String getServerSalt()
return the salt for the server.

Returns:
the salt for the server

getCacheConfiguration

public final PoorMansCacheConfiguration getCacheConfiguration()
returns the configuration for the PoorMansCache.

Returns:
the configuration for the PoorMansCache.

getVersioningPrefix

public final java.lang.String getVersioningPrefix()
return the versioning prefix (see: VersionRewriteFilter).

Returns:
the versioning prefix