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.lang.Integer getHttpPort()
           
 java.lang.Integer getHttpSecurePort()
           
 java.lang.String[] getListeningAddresses()
          Returns the addresses to bind to
 java.lang.Integer getSessionTimeout()
          Returns the time in minutes after which an incative settion times out.
 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.Boolean isHttpEnabled()
           
 java.lang.Boolean isHttpSecureEnabled()
           
 java.lang.String toString()
           
 
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()

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

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

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

toString

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


Copyright © 2008. All Rights Reserved.