public class JettyHTTPServerEngineFactory extends Object
Constructor and Description |
---|
JettyHTTPServerEngineFactory() |
JettyHTTPServerEngineFactory(Bus b) |
JettyHTTPServerEngineFactory(Bus b,
Map<String,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.
|
Bus |
getBus() |
org.eclipse.jetty.util.component.Container.Listener |
getMBeanContainer() |
MBeanServer |
getMBeanServer() |
Map<String,ThreadingParameters> |
getThreadingParametersMap() |
Map<String,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(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
|
public JettyHTTPServerEngineFactory()
public JettyHTTPServerEngineFactory(Bus b)
public JettyHTTPServerEngineFactory(Bus b, Map<String,TLSServerParameters> tls, Map<String,ThreadingParameters> threading)
public boolean isJetty8()
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 valueGeneralSecurityException
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 valueGeneralSecurityException
IOException
public 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