Apache CXF API

org.apache.cxf.transport.http_jetty
Class JettyHTTPServerEngineFactory

java.lang.Object
  extended by org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory

public class JettyHTTPServerEngineFactory
extends java.lang.Object

This Bus Extension handles the configuration of network port numbers for use with "http" or "https". This factory caches the JettyHTTPServerEngines so that they may be retrieved if already previously configured.


Constructor Summary
JettyHTTPServerEngineFactory()
           
 
Method Summary
protected  JettyHTTPServerEngine createJettyHTTPServerEngine(int port, java.lang.String protocol)
          This call creates a new JettyHTTPServerEngine initialized for "http" or "https" on the given port.
 void destroyForPort(int port)
          This method removes the Server Engine from the port map and stops it.
 void finalizeConfig()
           
 java.util.Map<java.lang.String,ThreadingParameters> getThreadingParametersMap()
           
 java.util.Map<java.lang.String,TLSServerParameters> getTlsServerParametersMap()
           
 void registerWithBus()
           
protected  JettyHTTPServerEngine retrieveJettyHTTPServerEngine(int port)
          This call retrieves a previously configured JettyHTTPServerEngine for the given port.
 void setBus(Bus bus)
          This call is used to set the bus.
 void setEnginesList(java.util.List<JettyHTTPServerEngine> enginesList)
           
 void setThreadingParametersMap(java.util.Map<java.lang.String,ThreadingParameters> threadingParamsMap)
          This call sets the ThreadingParameters for a JettyHTTPServerEngine
 void setTlsServerParametersMap(java.util.Map<java.lang.String,TLSServerParameters> tlsParamsMap)
          This call sets TLSParametersMap for a JettyHTTPServerEngine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JettyHTTPServerEngineFactory

public JettyHTTPServerEngineFactory()
Method Detail

setBus

public void setBus(Bus bus)
This call is used to set the bus. It should only be called once.

Parameters:
bus -

registerWithBus

@PostConstruct
public void registerWithBus()

setTlsServerParametersMap

public void setTlsServerParametersMap(java.util.Map<java.lang.String,TLSServerParameters> tlsParamsMap)
This call sets TLSParametersMap for a JettyHTTPServerEngine


getTlsServerParametersMap

public java.util.Map<java.lang.String,TLSServerParameters> getTlsServerParametersMap()

setEnginesList

public void setEnginesList(java.util.List<JettyHTTPServerEngine> enginesList)

setThreadingParametersMap

public void setThreadingParametersMap(java.util.Map<java.lang.String,ThreadingParameters> threadingParamsMap)
This call sets the ThreadingParameters for a JettyHTTPServerEngine


getThreadingParametersMap

public java.util.Map<java.lang.String,ThreadingParameters> getThreadingParametersMap()

retrieveJettyHTTPServerEngine

protected JettyHTTPServerEngine retrieveJettyHTTPServerEngine(int port)
This call retrieves a previously configured JettyHTTPServerEngine for the given port. If none exists, this call returns null.


createJettyHTTPServerEngine

protected JettyHTTPServerEngine createJettyHTTPServerEngine(int port,
                                                            java.lang.String protocol)
                                                     throws java.security.GeneralSecurityException,
                                                            java.io.IOException
This call creates a new JettyHTTPServerEngine initialized for "http" or "https" on the given port. The determination of "http" or "https" will depend on configuration of the engine's bean name. If an JettyHTTPEngine already exists, or the port is already in use, a BindIOException will be thrown. If the engine is being Spring configured for TLS a GeneralSecurityException may be thrown.

Throws:
java.security.GeneralSecurityException
java.io.IOException

destroyForPort

public void destroyForPort(int port)
This method removes the Server Engine from the port map and stops it.


finalizeConfig

@PostConstruct
public void finalizeConfig()

Apache CXF API

Apache CXF is an effort undergoing incubation at the Apache Software Foundation(ASF) and sponsored by the Apache Incubator PMC.