public class JettyHTTPServerEngineFactory extends Object
| Constructor and Description |
|---|
JettyHTTPServerEngineFactory() |
JettyHTTPServerEngineFactory(org.apache.cxf.Bus b) |
JettyHTTPServerEngineFactory(org.apache.cxf.Bus b,
Map<String,org.apache.cxf.configuration.jsse.TLSServerParameters> tls,
Map<String,ThreadingParameters> threading) |
| Modifier and Type | Method and Description |
|---|---|
JettyHTTPServerEngine |
createJettyHTTPServerEngine(int port,
String protocol)
Calls thru to {
createJettyHTTPServerEngine(String, int, String) with a 'null' host value |
JettyHTTPServerEngine |
createJettyHTTPServerEngine(String host,
int port,
String protocol)
This call creates a new JettyHTTPServerEngine initialized for "http"
or "https" on the given port.
|
static void |
destroyForPort(int port)
This method removes the Server Engine from the port map and stops it.
|
org.apache.cxf.Bus |
getBus() |
org.eclipse.jetty.util.component.Container.Listener |
getMBeanContainer() |
MBeanServer |
getMBeanServer() |
Map<String,ThreadingParameters> |
getThreadingParametersMap() |
Map<String,org.apache.cxf.configuration.jsse.TLSServerParameters> |
getTlsServerParametersMap() |
void |
initComplete() |
boolean |
isJetty8() |
void |
postShutdown() |
void |
preShutdown() |
JettyHTTPServerEngine |
retrieveJettyHTTPServerEngine(int port)
This call retrieves a previously configured JettyHTTPServerEngine for the
given port.
|
void |
setBus(org.apache.cxf.Bus bus)
This call is used to set the bus.
|
void |
setEnginesList(List<JettyHTTPServerEngine> enginesList) |
void |
setThreadingParametersMap(Map<String,ThreadingParameters> threadingParamsMap)
This call sets the ThreadingParameters for a JettyHTTPServerEngine
|
void |
setTLSServerParametersForPort(int port,
org.apache.cxf.configuration.jsse.TLSServerParameters tlsParams)
calls thru to {
createJettyHTTPServerEngine(String, int, String) with 'null' for host value |
void |
setTLSServerParametersForPort(String host,
int port,
org.apache.cxf.configuration.jsse.TLSServerParameters tlsParams)
This call sets TLSServerParameters for a JettyHTTPServerEngine
that will be subsequently created.
|
void |
setTlsServerParametersMap(Map<String,org.apache.cxf.configuration.jsse.TLSServerParameters> tlsParamsMap)
This call sets TLSParametersMap for a JettyHTTPServerEngine
|
public JettyHTTPServerEngineFactory()
public JettyHTTPServerEngineFactory(org.apache.cxf.Bus b)
public JettyHTTPServerEngineFactory(org.apache.cxf.Bus b,
Map<String,org.apache.cxf.configuration.jsse.TLSServerParameters> tls,
Map<String,ThreadingParameters> threading)
public boolean isJetty8()
public final void setBus(org.apache.cxf.Bus bus)
bus - public org.apache.cxf.Bus getBus()
public void setTlsServerParametersMap(Map<String,org.apache.cxf.configuration.jsse.TLSServerParameters> tlsParamsMap)
public Map<String,org.apache.cxf.configuration.jsse.TLSServerParameters> getTlsServerParametersMap()
public void setEnginesList(List<JettyHTTPServerEngine> enginesList)
public void setThreadingParametersMap(Map<String,ThreadingParameters> threadingParamsMap)
public Map<String,ThreadingParameters> getThreadingParametersMap()
public void setTLSServerParametersForPort(String host, int port, org.apache.cxf.configuration.jsse.TLSServerParameters tlsParams) throws GeneralSecurityException, IOException
host - if not null, server will listen on this address/host,
otherwise, server will listen on all local addresses.port - The network port number to bind to the engine.tlsParams - The tls server parameters. Cannot be null.IOExceptionGeneralSecurityExceptionpublic void setTLSServerParametersForPort(int port,
org.apache.cxf.configuration.jsse.TLSServerParameters tlsParams)
throws GeneralSecurityException,
IOException
createJettyHTTPServerEngine(String, int, String) with 'null' for host valueGeneralSecurityExceptionIOExceptionpublic JettyHTTPServerEngine retrieveJettyHTTPServerEngine(int port)
public JettyHTTPServerEngine createJettyHTTPServerEngine(String host, int port, String protocol) throws GeneralSecurityException, IOException
host - if not null, server will listen on this host/address, otherwise
server will listen on all local addresses.port - listen port for serverprotocol - "http" or "https"GeneralSecurityExceptionIOExceptionpublic JettyHTTPServerEngine createJettyHTTPServerEngine(int port, String protocol) throws GeneralSecurityException, IOException
createJettyHTTPServerEngine(String, int, String) with a 'null' host valueGeneralSecurityExceptionIOExceptionpublic static void destroyForPort(int port)
public MBeanServer getMBeanServer()
public org.eclipse.jetty.util.component.Container.Listener getMBeanContainer()
public void initComplete()
public void postShutdown()
public void preShutdown()
Apache CXF