public class UndertowHTTPServerEngineFactory extends Object
Constructor and Description |
---|
UndertowHTTPServerEngineFactory() |
UndertowHTTPServerEngineFactory(Bus b) |
UndertowHTTPServerEngineFactory(Bus b,
Map<String,TLSServerParameters> tls,
Map<String,ThreadingParameters> threading) |
Modifier and Type | Method and Description |
---|---|
UndertowHTTPServerEngine |
createUndertowHTTPServerEngine(int port,
String protocol)
Calls thru to {
createUndertowHTTPServerEngine(String, int, String) with a 'null' host value |
UndertowHTTPServerEngine |
createUndertowHTTPServerEngine(String host,
int port,
String protocol)
This call creates a new UndertowHTTPServerEngine 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() |
MBeanServer |
getMBeanServer() |
Map<String,ThreadingParameters> |
getThreadingParametersMap() |
Map<String,TLSServerParameters> |
getTlsServerParametersMap() |
void |
initComplete() |
void |
postShutdown() |
void |
preShutdown() |
UndertowHTTPServerEngine |
retrieveUndertowHTTPServerEngine(int port)
This call retrieves a previously configured UndertowHTTPServerEngine for the
given port.
|
void |
setBus(Bus bus)
This call is used to set the bus.
|
void |
setEnginesList(List<UndertowHTTPServerEngine> enginesList) |
void |
setThreadingParametersMap(Map<String,ThreadingParameters> threadingParamsMap)
This call sets the ThreadingParameters for a UndertowHTTPServerEngine
|
void |
setTLSServerParametersForPort(int port,
TLSServerParameters tlsParams)
calls thru to {
createUndertowHTTPServerEngine(String, int, String) with 'null' for host value |
void |
setTLSServerParametersForPort(String host,
int port,
TLSServerParameters tlsParams)
This call sets TLSServerParameters for a UndertowHTTPServerEngine
that will be subsequently created.
|
void |
setTlsServerParametersMap(Map<String,TLSServerParameters> tlsParamsMap)
This call sets TLSParametersMap for a UndertowHTTPServerEngine
|
public UndertowHTTPServerEngineFactory()
public UndertowHTTPServerEngineFactory(Bus b)
public UndertowHTTPServerEngineFactory(Bus b, Map<String,TLSServerParameters> tls, Map<String,ThreadingParameters> threading)
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<UndertowHTTPServerEngine> 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
createUndertowHTTPServerEngine(String, int, String)
with 'null' for host valueGeneralSecurityException
IOException
public UndertowHTTPServerEngine retrieveUndertowHTTPServerEngine(int port)
public UndertowHTTPServerEngine createUndertowHTTPServerEngine(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 UndertowHTTPServerEngine createUndertowHTTPServerEngine(int port, String protocol) throws GeneralSecurityException, IOException
createUndertowHTTPServerEngine(String, int, String)
with a 'null' host valueGeneralSecurityException
IOException
public static void destroyForPort(int port)
public MBeanServer getMBeanServer()
public void initComplete()
public void postShutdown()
public void preShutdown()
Apache CXF