public class UndertowHTTPServerEngine extends Object implements ServerEngine
| Modifier and Type | Field and Description |
|---|---|
static String |
DO_NOT_CHECK_URL_PROP |
static String |
ENABLE_HTTP2_PROP |
| Constructor and Description |
|---|
UndertowHTTPServerEngine() |
UndertowHTTPServerEngine(String host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
void |
addServant(URL url,
UndertowHTTPHandler handler) |
protected void |
checkRegistedContext(URL url) |
protected SSLContext |
createSSLContext() |
io.undertow.Undertow.Builder |
decorateUndertowSocketConnection(io.undertow.Undertow.Builder builder) |
void |
finalizeConfig() |
boolean |
getContinuationsEnabled() |
List<CXFUndertowHttpHandler> |
getHandlers() |
String |
getHost()
Returns the host for which this server engine was configured.
|
protected KeyManager[] |
getKeyManagersWithCertAlias(KeyManager[] keyManagers) |
int |
getMaxIdleTime() |
int |
getPort()
Returns the port number for which this server engine was configured.
|
String |
getProtocol()
Returns the protocol "http" or "https" for which this engine
was configured.
|
UndertowHTTPHandler |
getServant(URL url)
Get a previously registered servant.
|
ThreadingParameters |
getThreadingParameters()
This method returns the threading parameters that have been set.
|
org.apache.cxf.configuration.jsse.TLSServerParameters |
getTlsServerParameters()
This method returns the programmatically set TLSServerParameters, not
the TLSServerParametersType, which is the JAXB generated type used
in SpringConfiguration.
|
boolean |
isSetThreadingParameters()
This method returns whether the threading parameters are set.
|
void |
removeServant(URL url)
Remove a previously registered servant.
|
void |
setContinuationsEnabled(boolean enabled) |
void |
setHandlers(List<CXFUndertowHttpHandler> h)
set the Undertow server's handlers
|
void |
setHost(String host) |
void |
setMaxIdleTime(int maxIdleTime) |
void |
setPort(int p) |
void |
setThreadingParameters(ThreadingParameters params)
This method sets the threading parameters for this particular
server engine.
|
void |
setTlsServerParameters(org.apache.cxf.configuration.jsse.TLSServerParameters params)
This method is used to programmatically set the TLSServerParameters.
|
void |
shutdown()
This method will shut down the server engine and
remove it from the factory's cache.
|
void |
stop() |
public static final String DO_NOT_CHECK_URL_PROP
public static final String ENABLE_HTTP2_PROP
public UndertowHTTPServerEngine(String host, int port)
public UndertowHTTPServerEngine()
public void addServant(URL url, UndertowHTTPHandler handler)
addServant in interface ServerEnginepublic io.undertow.Undertow.Builder decorateUndertowSocketConnection(io.undertow.Undertow.Builder builder)
protected void checkRegistedContext(URL url)
public void removeServant(URL url)
ServerEngineremoveServant in interface ServerEngineurl - the URL the servant was registered against.public UndertowHTTPHandler getServant(URL url)
ServerEnginegetServant in interface ServerEngineurl - the associated URLpublic String getProtocol()
public int getPort()
public String getHost()
public void setPort(int p)
public void setHost(String host)
public void finalizeConfig()
public void setTlsServerParameters(org.apache.cxf.configuration.jsse.TLSServerParameters params)
IOExceptionpublic org.apache.cxf.configuration.jsse.TLSServerParameters getTlsServerParameters()
public void stop()
public void shutdown()
protected SSLContext createSSLContext() throws Exception
Exceptionprotected KeyManager[] getKeyManagersWithCertAlias(KeyManager[] keyManagers) throws Exception
Exceptionpublic void setThreadingParameters(ThreadingParameters params)
public boolean isSetThreadingParameters()
public ThreadingParameters getThreadingParameters()
public void setContinuationsEnabled(boolean enabled)
public boolean getContinuationsEnabled()
public int getMaxIdleTime()
public void setMaxIdleTime(int maxIdleTime)
public void setHandlers(List<CXFUndertowHttpHandler> h)
h - public List<CXFUndertowHttpHandler> getHandlers()
Apache CXF