public final class JettyConfig
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FELIX_HOST
Felix specific property to set the interface to listen on.
|
static java.lang.String |
FELIX_HTTP_CONTEXT_PATH
Felix specific property to set the servlet context path of the Http Service
|
static java.lang.String |
FELIX_HTTP_DEBUG
Felix specific property to enable debug messages
|
static java.lang.String |
FELIX_HTTP_ENABLE
Felix specific property to control whether to enable HTTP.
|
static java.lang.String |
FELIX_HTTP_MBEANS
Felix specific property to enable Jetty MBeans.
|
static java.lang.String |
FELIX_HTTP_PATH_EXCLUSIONS
Felix specific property to set the list of path exclusions for Web Application Bundles
|
static java.lang.String |
FELIX_HTTPS_CLIENT_CERT
Felix specific property to control whether to want or require HTTPS client certificates.
|
static java.lang.String |
FELIX_HTTPS_ENABLE
Felix specific property to control whether to enable HTTPS.
|
static java.lang.String |
FELIX_JETTY_EXCLUDED_PROTOCOLS
Felix specific property to configure the excluded protocols
|
static java.lang.String |
FELIX_JETTY_EXCLUDED_SUITES
Felix specific property to configure the excluded cipher suites
|
static java.lang.String |
FELIX_JETTY_EXCLUDED_SUITES_OLD
Deprecated.
|
static java.lang.String |
FELIX_JETTY_HEADER_BUFFER_SIZE
Felix specific property to configure the request buffer size.
|
static java.lang.String |
FELIX_JETTY_INCLUDED_PROTOCOLS
Felix specific property to configure the included protocols
|
static java.lang.String |
FELIX_JETTY_INCLUDED_SUITES
Felix specific property to configure the included cipher suites.
|
static java.lang.String |
FELIX_JETTY_INCLUDED_SUITES_OLD
Deprecated.
|
static java.lang.String |
FELIX_JETTY_MAX_FORM_SIZE
Felix specific property to configure the max form size.
|
static java.lang.String |
FELIX_JETTY_REQUEST_BUFFER_SIZE
Felix specific property to configure the request buffer size.
|
static java.lang.String |
FELIX_JETTY_RESPONSE_BUFFER_SIZE
Felix specific property to configure the request buffer size.
|
static java.lang.String |
FELIX_JETTY_SEND_SERVER_HEADER
Felix specific property to specify whether a server header should be sent (defaults to true)
|
static java.lang.String |
FELIX_KEYSTORE
Felix specific property to override the keystore file location.
|
static java.lang.String |
FELIX_KEYSTORE_KEY_PASSWORD
Felix specific property to override the keystore key password.
|
static java.lang.String |
FELIX_KEYSTORE_PASSWORD
Felix specific property to override the keystore password.
|
static java.lang.String |
FELIX_KEYSTORE_TYPE
Felix specific property to override the type of keystore (JKS).
|
static java.lang.String |
FELIX_SESSION_TIMEOUT
Felix specific property to configure the session timeout in minutes (same session-timout in web.xml).
|
static java.lang.String |
FELIX_TRUSTSTORE
Felix specific property to override the truststore file location.
|
static java.lang.String |
FELIX_TRUSTSTORE_PASSWORD
Felix specific property to override the truststore password.
|
static java.lang.String |
FELIX_TRUSTSTORE_TYPE
Felix specific property to override the type of truststore (JKS).
|
static java.lang.String |
HTTP_DEBUG |
static java.lang.String |
HTTP_PORT
Standard OSGi port property for HTTP service
|
static java.lang.String |
HTTP_TIMEOUT
Felix specific property to set http reaching timeout limit
|
static java.lang.String |
HTTPS_PORT
Standard OSGi port property for HTTPS service
|
Constructor and Description |
---|
JettyConfig(org.osgi.framework.BundleContext context) |
Modifier and Type | Method and Description |
---|---|
boolean |
getBooleanProperty(java.lang.String name,
boolean defValue)
Returns the named generic configuration property from the
configuration or the bundle context.
|
java.lang.String |
getClientcert() |
java.lang.String |
getContextPath() |
java.lang.String[] |
getExcludedCipherSuites() |
java.lang.String[] |
getExcludedProtocols() |
int |
getHeaderSize() |
java.lang.String |
getHost() |
int |
getHttpPort() |
int |
getHttpsPort() |
int |
getHttpTimeout() |
java.lang.String[] |
getIncludedCipherSuites() |
java.lang.String[] |
getIncludedProtocols() |
int |
getIntProperty(java.lang.String name,
int defValue)
Returns the named generic configuration property from the
configuration or the bundle context.
|
java.lang.String |
getKeyPassword() |
java.lang.String |
getKeystore() |
java.lang.String |
getKeystoreType() |
int |
getMaxFormSize() |
java.lang.String |
getPassword() |
java.lang.String[] |
getPathExclusions() |
java.lang.String |
getProperty(java.lang.String name,
java.lang.String defValue)
Returns the named generic configuration property from the
configuration or the bundle context.
|
int |
getRequestBufferSize() |
int |
getResponseBufferSize() |
int |
getSessionTimeout()
Returns the configured session timeout in minutes or zero if not
configured.
|
java.lang.String |
getTrustPassword() |
java.lang.String |
getTruststore() |
java.lang.String |
getTruststoreType() |
boolean |
isDebug() |
boolean |
isRegisterMBeans() |
boolean |
isSendServerHeader() |
boolean |
isUseHttp()
Returns
true if HTTP is configured to be used (
FELIX_HTTP_ENABLE ) and
the configured HTTP port (HTTP_PORT ) is higher than zero. |
boolean |
isUseHttps()
Returns
true if HTTPS is configured to be used (
FELIX_HTTPS_ENABLE ) and
the configured HTTP port (HTTPS_PORT ) is higher than zero. |
void |
reset() |
void |
setServiceProperties(java.util.Hashtable<java.lang.String,java.lang.Object> props) |
boolean |
update(java.util.Dictionary props)
Updates this configuration with the given dictionary.
|
public static final java.lang.String FELIX_HOST
public static final java.lang.String HTTP_PORT
public static final java.lang.String HTTPS_PORT
public static final java.lang.String HTTP_TIMEOUT
public static final java.lang.String FELIX_HTTP_DEBUG
public static final java.lang.String HTTP_DEBUG
public static final java.lang.String FELIX_KEYSTORE
public static final java.lang.String FELIX_KEYSTORE_PASSWORD
public static final java.lang.String FELIX_KEYSTORE_KEY_PASSWORD
public static final java.lang.String FELIX_KEYSTORE_TYPE
public static final java.lang.String FELIX_HTTPS_ENABLE
public static final java.lang.String FELIX_HTTP_ENABLE
public static final java.lang.String FELIX_TRUSTSTORE
public static final java.lang.String FELIX_TRUSTSTORE_PASSWORD
public static final java.lang.String FELIX_TRUSTSTORE_TYPE
public static final java.lang.String FELIX_HTTPS_CLIENT_CERT
public static final java.lang.String FELIX_SESSION_TIMEOUT
public static final java.lang.String FELIX_JETTY_HEADER_BUFFER_SIZE
public static final java.lang.String FELIX_JETTY_REQUEST_BUFFER_SIZE
public static final java.lang.String FELIX_JETTY_RESPONSE_BUFFER_SIZE
public static final java.lang.String FELIX_JETTY_MAX_FORM_SIZE
public static final java.lang.String FELIX_HTTP_MBEANS
public static final java.lang.String FELIX_HTTP_CONTEXT_PATH
public static final java.lang.String FELIX_HTTP_PATH_EXCLUSIONS
@Deprecated public static final java.lang.String FELIX_JETTY_EXCLUDED_SUITES_OLD
#FELIX_JETTY_EXCLUDE_SUITES
instead.public static final java.lang.String FELIX_JETTY_EXCLUDED_SUITES
@Deprecated public static final java.lang.String FELIX_JETTY_INCLUDED_SUITES_OLD
#FELIX_JETTY_INCLUDE_SUITES
instead.public static final java.lang.String FELIX_JETTY_INCLUDED_SUITES
public static final java.lang.String FELIX_JETTY_SEND_SERVER_HEADER
public static final java.lang.String FELIX_JETTY_INCLUDED_PROTOCOLS
public static final java.lang.String FELIX_JETTY_EXCLUDED_PROTOCOLS
public boolean getBooleanProperty(java.lang.String name, boolean defValue)
public java.lang.String getClientcert()
public java.lang.String getContextPath()
public java.lang.String[] getExcludedCipherSuites()
public java.lang.String[] getIncludedProtocols()
public java.lang.String[] getExcludedProtocols()
public int getHeaderSize()
public java.lang.String getHost()
public int getHttpPort()
public int getHttpsPort()
public int getHttpTimeout()
public java.lang.String[] getIncludedCipherSuites()
public int getIntProperty(java.lang.String name, int defValue)
public java.lang.String getKeyPassword()
public java.lang.String getKeystore()
public java.lang.String getKeystoreType()
public java.lang.String getPassword()
public java.lang.String[] getPathExclusions()
public java.lang.String getProperty(java.lang.String name, java.lang.String defValue)
public int getRequestBufferSize()
public int getResponseBufferSize()
public int getMaxFormSize()
public int getSessionTimeout()
public java.lang.String getTrustPassword()
public java.lang.String getTruststore()
public java.lang.String getTruststoreType()
public boolean isDebug()
public boolean isRegisterMBeans()
public boolean isUseHttp()
true
if HTTP is configured to be used (
FELIX_HTTP_ENABLE
) and
the configured HTTP port (HTTP_PORT
) is higher than zero.public boolean isSendServerHeader()
public boolean isUseHttps()
true
if HTTPS is configured to be used (
FELIX_HTTPS_ENABLE
) and
the configured HTTP port (HTTPS_PORT
) is higher than zero.public void reset()
public void setServiceProperties(java.util.Hashtable<java.lang.String,java.lang.Object> props)
public boolean update(java.util.Dictionary props)
props
- the dictionary with the new configuration values, can be null
to reset this configuration to its defaults.true
if the configuration was updated due to a changed value, or false
if no change was found.Copyright © 2006-2015 The Apache Software Foundation. All Rights Reserved.