|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 bus,
java.util.Map<java.lang.String,TLSServerParameters> tls,
java.util.Map<java.lang.String,ThreadingParameters> threading)
|
Method Summary | |
---|---|
JettyHTTPServerEngine |
createJettyHTTPServerEngine(int port,
java.lang.String protocol)
Calls thru to { createJettyHTTPServerEngine(String, int, String) with a 'null' host value |
JettyHTTPServerEngine |
createJettyHTTPServerEngine(java.lang.String host,
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()
|
Bus |
getBus()
|
java.util.Map<java.lang.String,ThreadingParameters> |
getThreadingParametersMap()
|
java.util.Map<java.lang.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. |
void |
registerWithBus()
|
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 |
setTLSServerParametersForPort(int port,
TLSServerParameters tlsParams)
calls thru to { createJettyHTTPServerEngine(String, int, String) with 'null' for host value |
void |
setTLSServerParametersForPort(java.lang.String host,
int port,
TLSServerParameters tlsParams)
This call sets TLSServerParameters for a JettyHTTPServerEngine that will be subsequently created. |
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 |
---|
public JettyHTTPServerEngineFactory()
public JettyHTTPServerEngineFactory(Bus bus, java.util.Map<java.lang.String,TLSServerParameters> tls, java.util.Map<java.lang.String,ThreadingParameters> threading)
Method Detail |
---|
public void setBus(Bus bus)
bus
- public Bus getBus()
@PostConstruct public void registerWithBus()
public void setTlsServerParametersMap(java.util.Map<java.lang.String,TLSServerParameters> tlsParamsMap)
public java.util.Map<java.lang.String,TLSServerParameters> getTlsServerParametersMap()
public void setEnginesList(java.util.List<JettyHTTPServerEngine> enginesList)
public void setThreadingParametersMap(java.util.Map<java.lang.String,ThreadingParameters> threadingParamsMap)
public java.util.Map<java.lang.String,ThreadingParameters> getThreadingParametersMap()
public void setTLSServerParametersForPort(java.lang.String host, int port, TLSServerParameters tlsParams) throws java.security.GeneralSecurityException, java.io.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.
java.io.IOException
java.security.GeneralSecurityException
public void setTLSServerParametersForPort(int port, TLSServerParameters tlsParams) throws java.security.GeneralSecurityException, java.io.IOException
createJettyHTTPServerEngine(String, int, String)
with 'null' for host value
java.security.GeneralSecurityException
java.io.IOException
public JettyHTTPServerEngine retrieveJettyHTTPServerEngine(int port)
public JettyHTTPServerEngine createJettyHTTPServerEngine(java.lang.String host, int port, java.lang.String protocol) throws java.security.GeneralSecurityException, java.io.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"
java.security.GeneralSecurityException
java.io.IOException
public JettyHTTPServerEngine createJettyHTTPServerEngine(int port, java.lang.String protocol) throws java.security.GeneralSecurityException, java.io.IOException
createJettyHTTPServerEngine(String, int, String)
with a 'null' host value
java.security.GeneralSecurityException
java.io.IOException
public void destroyForPort(int port)
@PostConstruct public void finalizeConfig()
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |