|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory
public class JettyHTTPServerEngineFactory
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()
|
|
JettyHTTPServerEngineFactory(Bus b)
|
|
JettyHTTPServerEngineFactory(Bus b,
Map<String,TLSServerParameters> tls,
Map<String,ThreadingParameters> threading)
|
Method Summary | |
---|---|
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. |
void |
destroyForPort(int port)
This method removes the Server Engine from the port map and stops it. |
Bus |
getBus()
|
org.eclipse.jetty.util.component.Container.Listener |
getMBeanContainer()
|
Map<String,ThreadingParameters> |
getThreadingParametersMap()
|
Map<String,TLSServerParameters> |
getTlsServerParametersMap()
|
void |
initComplete()
Invoked when the Bus has been initialized. |
void |
postShutdown()
Invoked after the Bus is shutdown. |
void |
preShutdown()
Invoked before the Bus is shutdown. |
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(List<JettyHTTPServerEngine> enginesList)
|
void |
setThreadingParametersMap(Map<String,ThreadingParameters> threadingParamsMap)
This call sets the ThreadingParameters for a JettyHTTPServerEngine |
void |
setTLSServerParametersForPort(int port,
TLSServerParameters tlsParams)
calls thru to { createJettyHTTPServerEngine(String, int, String) with 'null' for host value |
void |
setTLSServerParametersForPort(String host,
int port,
TLSServerParameters tlsParams)
This call sets TLSServerParameters for a JettyHTTPServerEngine that will be subsequently created. |
void |
setTlsServerParametersMap(Map<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 |
---|
public JettyHTTPServerEngineFactory()
public JettyHTTPServerEngineFactory(Bus b)
public JettyHTTPServerEngineFactory(Bus b, Map<String,TLSServerParameters> tls, Map<String,ThreadingParameters> threading)
Method Detail |
---|
public final void setBus(Bus bus)
bus
- public Bus getBus()
public void setTlsServerParametersMap(Map<String,TLSServerParameters> tlsParamsMap)
public Map<String,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, 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.
IOException
GeneralSecurityException
public void setTLSServerParametersForPort(int port, TLSServerParameters tlsParams) throws GeneralSecurityException, IOException
createJettyHTTPServerEngine(String, int, String)
with 'null' for host value
GeneralSecurityException
IOException
public 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"
GeneralSecurityException
IOException
public JettyHTTPServerEngine createJettyHTTPServerEngine(int port, String protocol) throws GeneralSecurityException, IOException
createJettyHTTPServerEngine(String, int, String)
with a 'null' host value
GeneralSecurityException
IOException
public void destroyForPort(int port)
public org.eclipse.jetty.util.component.Container.Listener getMBeanContainer()
public void initComplete()
BusLifeCycleListener
Bus
has been initialized.
initComplete
in interface BusLifeCycleListener
public void postShutdown()
BusLifeCycleListener
Bus
is shutdown.
postShutdown
in interface BusLifeCycleListener
public void preShutdown()
BusLifeCycleListener
Bus
is shutdown.
preShutdown
in interface BusLifeCycleListener
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |