public class UndertowHTTPServerEngine extends Object implements ServerEngine
Modifier and Type | Field and Description |
---|---|
static String |
DO_NOT_CHECK_URL_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() |
Undertow.Builder |
decorateUndertowSocketConnection(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.
|
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(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 UndertowHTTPServerEngine(String host, int port)
public UndertowHTTPServerEngine()
public void addServant(URL url, UndertowHTTPHandler handler)
addServant
in interface ServerEngine
public Undertow.Builder decorateUndertowSocketConnection(Undertow.Builder builder)
protected void checkRegistedContext(URL url)
public void removeServant(URL url)
ServerEngine
removeServant
in interface ServerEngine
url
- the URL the servant was registered against.public UndertowHTTPHandler getServant(URL url)
ServerEngine
getServant
in interface ServerEngine
url
- the associated URLpublic String getProtocol()
public int getPort()
public String getHost()
public void setPort(int p)
public void setHost(String host)
public void finalizeConfig() throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
public void setTlsServerParameters(TLSServerParameters params)
IOException
public TLSServerParameters getTlsServerParameters()
public void stop()
public void shutdown()
protected SSLContext createSSLContext() throws Exception
Exception
protected KeyManager[] getKeyManagersWithCertAlias(KeyManager[] keyManagers) throws Exception
Exception
public 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