org.ops4j.pax.web.service.internal
Class ConfigurationImpl

java.lang.Object
  extended by org.ops4j.util.property.PropertyStore
      extended by org.ops4j.pax.web.service.internal.ConfigurationImpl
All Implemented Interfaces:
Configuration

public class ConfigurationImpl
extends org.ops4j.util.property.PropertyStore
implements Configuration

Service Configuration implementation.

Since:
0.3.0, January 22, 2008
Author:
Alin Dreghiciu

Constructor Summary
ConfigurationImpl(org.ops4j.util.property.PropertyResolver propertyResolver)
          Creates a new service configuration.
 
Method Summary
 java.io.File getConfigurationDir()
          Returns the directory containing the external configuration
 java.lang.Integer getHttpPort()
           
 java.lang.Integer getHttpSecurePort()
           
 java.lang.Integer getJspCheckInterval()
           
 java.lang.Boolean getJspClassDebugInfo()
           
 java.lang.Boolean getJspDevelopment()
           
 java.lang.Boolean getJspEnablePooling()
           
 java.lang.String getJspIeClassId()
           
 java.lang.String getJspJavaEncoding()
           
 java.lang.Boolean getJspKeepgenerated()
           
 java.lang.String getJspLogVerbosityLevel()
           
 java.lang.Boolean getJspMappedfile()
           
 java.lang.String getJspScratchDir()
           
 java.lang.Integer getJspTagpoolMaxSize()
           
 java.lang.String[] getListeningAddresses()
          Returns the addresses to bind to
 java.lang.String getSessionCookie()
           
 java.lang.Integer getSessionTimeout()
          Returns the time in minutes after which an incative settion times out.
 java.lang.String getSessionUrl()
           
 java.lang.String getSslKeyPassword()
          Returns the password for keystore.
 java.lang.String getSslKeystore()
          Returns the path to the keystore.
 java.lang.String getSslKeystoreType()
          Returns the keystore type.
 java.lang.String getSslPassword()
          Returns the password for keystore integrity check.
 java.io.File getTemporaryDirectory()
          Returns the temporary directory, directory that will be set as javax.servlet.context.tempdir.
 java.lang.String getWorkerName()
           
 java.lang.Boolean isClientAuthNeeded()
          Set the value of the needClientAuth property
 java.lang.Boolean isClientAuthWanted()
          Set the value of the _wantClientAuth property.
 java.lang.Boolean isHttpEnabled()
           
 java.lang.Boolean isHttpSecureEnabled()
           
 java.lang.String toString()
           
 java.lang.Boolean useNIO()
           
 
Methods inherited from class org.ops4j.util.property.PropertyStore
contains, get, set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigurationImpl

public ConfigurationImpl(org.ops4j.util.property.PropertyResolver propertyResolver)
Creates a new service configuration.

Parameters:
propertyResolver - propertyResolver used to resolve properties; mandatory
Method Detail

getHttpPort

public java.lang.Integer getHttpPort()
Specified by:
getHttpPort in interface Configuration
See Also:
Configuration.getHttpPort()

useNIO

public java.lang.Boolean useNIO()
Specified by:
useNIO in interface Configuration
See Also:
Configuration.useNIO()

isClientAuthNeeded

public java.lang.Boolean isClientAuthNeeded()
Description copied from interface: Configuration
Set the value of the needClientAuth property

Specified by:
isClientAuthNeeded in interface Configuration
Returns:
true if we require client certificate authentication
See Also:
Configuration.isClientAuthNeeded()

isClientAuthWanted

public java.lang.Boolean isClientAuthWanted()
Description copied from interface: Configuration
Set the value of the _wantClientAuth property. This property is used when opening server sockets.

Specified by:
isClientAuthWanted in interface Configuration
Returns:
true if we want client certificate authentication
See Also:
Configuration.isClientAuthWanted()

isHttpEnabled

public java.lang.Boolean isHttpEnabled()
Specified by:
isHttpEnabled in interface Configuration
See Also:
Configuration.isHttpEnabled()

getHttpSecurePort

public java.lang.Integer getHttpSecurePort()
Specified by:
getHttpSecurePort in interface Configuration
See Also:
Configuration.getHttpSecurePort()

isHttpSecureEnabled

public java.lang.Boolean isHttpSecureEnabled()
Specified by:
isHttpSecureEnabled in interface Configuration
See Also:
Configuration.isHttpSecureEnabled()

getSslKeystore

public java.lang.String getSslKeystore()
Description copied from interface: Configuration
Returns the path to the keystore.

Specified by:
getSslKeystore in interface Configuration
Returns:
path to the keystore.
See Also:
Configuration.getSslKeystore()

getSslKeystoreType

public java.lang.String getSslKeystoreType()
Description copied from interface: Configuration
Returns the keystore type.

Specified by:
getSslKeystoreType in interface Configuration
Returns:
keystore type.
See Also:
Configuration.getSslKeystoreType()

getSslPassword

public java.lang.String getSslPassword()
Description copied from interface: Configuration
Returns the password for keystore integrity check.

Specified by:
getSslPassword in interface Configuration
Returns:
the password for keystore integrity check
See Also:
Configuration.getSslPassword()

getSslKeyPassword

public java.lang.String getSslKeyPassword()
Description copied from interface: Configuration
Returns the password for keystore.

Specified by:
getSslKeyPassword in interface Configuration
Returns:
the password for keystore
See Also:
Configuration.getSslKeyPassword()

getTemporaryDirectory

public java.io.File getTemporaryDirectory()
Description copied from interface: Configuration
Returns the temporary directory, directory that will be set as javax.servlet.context.tempdir.

Specified by:
getTemporaryDirectory in interface Configuration
Returns:
the temporary directory
See Also:
Configuration.getTemporaryDirectory()

getConfigurationDir

public java.io.File getConfigurationDir()
Description copied from interface: Configuration
Returns the directory containing the external configuration

Specified by:
getConfigurationDir in interface Configuration
Returns:

getSessionTimeout

public java.lang.Integer getSessionTimeout()
Description copied from interface: Configuration
Returns the time in minutes after which an incative settion times out. If returned value is null then no time out will be set (in jetty this will mean that there will be no timeout)

Specified by:
getSessionTimeout in interface Configuration
Returns:
timeout in minutes
See Also:
Configuration.getSessionTimeout()

getSessionCookie

public java.lang.String getSessionCookie()
Specified by:
getSessionCookie in interface Configuration

getSessionUrl

public java.lang.String getSessionUrl()
Specified by:
getSessionUrl in interface Configuration

getWorkerName

public java.lang.String getWorkerName()
Specified by:
getWorkerName in interface Configuration

getListeningAddresses

public java.lang.String[] getListeningAddresses()
Description copied from interface: Configuration
Returns the addresses to bind to

Specified by:
getListeningAddresses in interface Configuration
Returns:
addresses
See Also:
Configuration.getListeningAddresses()

getJspScratchDir

public java.lang.String getJspScratchDir()
Specified by:
getJspScratchDir in interface Configuration

getJspCheckInterval

public java.lang.Integer getJspCheckInterval()
Specified by:
getJspCheckInterval in interface Configuration

getJspClassDebugInfo

public java.lang.Boolean getJspClassDebugInfo()
Specified by:
getJspClassDebugInfo in interface Configuration

getJspDevelopment

public java.lang.Boolean getJspDevelopment()
Specified by:
getJspDevelopment in interface Configuration

getJspEnablePooling

public java.lang.Boolean getJspEnablePooling()
Specified by:
getJspEnablePooling in interface Configuration

getJspIeClassId

public java.lang.String getJspIeClassId()
Specified by:
getJspIeClassId in interface Configuration

getJspJavaEncoding

public java.lang.String getJspJavaEncoding()
Specified by:
getJspJavaEncoding in interface Configuration

getJspKeepgenerated

public java.lang.Boolean getJspKeepgenerated()
Specified by:
getJspKeepgenerated in interface Configuration

getJspLogVerbosityLevel

public java.lang.String getJspLogVerbosityLevel()
Specified by:
getJspLogVerbosityLevel in interface Configuration

getJspMappedfile

public java.lang.Boolean getJspMappedfile()
Specified by:
getJspMappedfile in interface Configuration

getJspTagpoolMaxSize

public java.lang.Integer getJspTagpoolMaxSize()
Specified by:
getJspTagpoolMaxSize in interface Configuration

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2006-2011 OPS4J - Open Participation Software for Java. All Rights Reserved.