org.apache.felix.http.jetty.internal
Class JettyConfig

java.lang.Object
  extended by org.apache.felix.http.jetty.internal.JettyConfig

public final class JettyConfig
extends Object


Field Summary
static String FELIX_HTTP_NIO
          Felix specific property to control whether Jetty uses NIO or not for HTTP.
static String FELIX_HTTPS_NIO
          Felix specific property to control whether Jetty uses NIO or not for HTTPS.
 
Constructor Summary
JettyConfig(BundleContext context)
           
 
Method Summary
 String getClientcert()
           
 int getHttpPort()
           
 int getHttpsPort()
           
 String getKeyPassword()
           
 String getKeystore()
           
 String getPassword()
           
 String getTrustPassword()
           
 String getTruststore()
           
 boolean isDebug()
           
 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 isUseHttpNio()
           
 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.
 boolean isUseHttpsNio()
           
 void reset()
           
 void setServiceProperties( props)
           
 void update(Dictionary props)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FELIX_HTTP_NIO

public static final String FELIX_HTTP_NIO
Felix specific property to control whether Jetty uses NIO or not for HTTP. Valid values are "true", "false". Default is true

See Also:
Constant Field Values

FELIX_HTTPS_NIO

public static final String FELIX_HTTPS_NIO
Felix specific property to control whether Jetty uses NIO or not for HTTPS. Valid values are "true", "false". Default is the value of org.apache.felix.http.nio

See Also:
Constant Field Values
Constructor Detail

JettyConfig

public JettyConfig(BundleContext context)
Method Detail

isDebug

public boolean isDebug()

isUseHttp

public 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.


isUseHttpNio

public boolean isUseHttpNio()

isUseHttps

public 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.


isUseHttpsNio

public boolean isUseHttpsNio()

getHttpPort

public int getHttpPort()

getHttpsPort

public int getHttpsPort()

getKeystore

public String getKeystore()

getPassword

public String getPassword()

getTruststore

public String getTruststore()

getTrustPassword

public String getTrustPassword()

getKeyPassword

public String getKeyPassword()

getClientcert

public String getClientcert()

reset

public void reset()

update

public void update(Dictionary props)

setServiceProperties

public void setServiceProperties( props)


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.