Class UndertowHTTPServerEngine
java.lang.Object
org.apache.cxf.transport.http_undertow.UndertowHTTPServerEngine
- All Implemented Interfaces:
ServerEngine,HttpServerEngineSupport
- Direct Known Subclasses:
UndertowHTTPServerEngineBeanDefinitionParser.SpringUndertowHTTPServerEngine
public class UndertowHTTPServerEngine
extends Object
implements ServerEngine, HttpServerEngineSupport
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final StringDeprecated.static final StringFields inherited from interface org.apache.cxf.transport.http.HttpServerEngineSupport
ENABLE_HTTP2 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddServant(URL url, UndertowHTTPHandler handler) protected voidcheckRegistedContext(URL url) protected SSLContextio.undertow.Undertow.BuilderdecorateUndertowSocketConnection(io.undertow.Undertow.Builder builder) voidbooleangetHost()Returns the host for which this server engine was configured.protected KeyManager[]getKeyManagersWithCertAlias(KeyManager[] keyManagers) intintgetPort()Returns the port number for which this server engine was configured.Returns the protocol "http" or "https" for which this engine was configured.getServant(URL url) Get a previously registered servant.This method returns the threading parameters that have been set.This method returns the programmatically set TLSServerParameters, not the TLSServerParametersType, which is the JAXB generated type used in SpringConfiguration.booleanisHttp2Enabled(Bus bus) Check if Http2 is enabled on the Bus or system property Default if not configured otherwise is truebooleanThis method returns whether the threading parameters are set.voidremoveServant(URL url) Remove a previously registered servant.voidsetContinuationsEnabled(boolean enabled) voidset the Undertow server's handlersvoidvoidsetMaxIdleTime(int maxIdleTime) voidsetPort(int p) voidThis method sets the threading parameters for this particular server engine.voidThis method is used to programmatically set the TLSServerParameters.voidshutdown()This method will shut down the server engine and remove it from the factory's cache.voidstop()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cxf.transport.http.HttpServerEngineSupport
isHttp2Required
-
Field Details
-
DO_NOT_CHECK_URL_PROP
- See Also:
-
ENABLE_HTTP2_PROP
Deprecated.Please useHttpServerEngineSupport.ENABLE_HTTP2instead.- See Also:
-
ENABLE_RECORD_REQUEST_START_TIME_PROP
- See Also:
-
-
Constructor Details
-
UndertowHTTPServerEngine
-
UndertowHTTPServerEngine
public UndertowHTTPServerEngine()
-
-
Method Details
-
addServant
- Specified by:
addServantin interfaceServerEngine
-
isHttp2Enabled
Description copied from interface:HttpServerEngineSupportCheck if Http2 is enabled on the Bus or system property Default if not configured otherwise is true- Specified by:
isHttp2Enabledin interfaceHttpServerEngineSupport- Returns:
-
decorateUndertowSocketConnection
public io.undertow.Undertow.Builder decorateUndertowSocketConnection(io.undertow.Undertow.Builder builder) -
checkRegistedContext
-
removeServant
Description copied from interface:ServerEngineRemove a previously registered servant.- Specified by:
removeServantin interfaceServerEngine- Parameters:
url- the URL the servant was registered against.
-
getServant
Description copied from interface:ServerEngineGet a previously registered servant.- Specified by:
getServantin interfaceServerEngine- Parameters:
url- the associated URL- Returns:
- the HttpHandler if registered
-
getProtocol
Returns the protocol "http" or "https" for which this engine was configured. -
getPort
public int getPort()Returns the port number for which this server engine was configured.- Returns:
-
getHost
Returns the host for which this server engine was configured.- Returns:
-
setPort
public void setPort(int p) -
setHost
-
finalizeConfig
public void finalizeConfig() -
setTlsServerParameters
This method is used to programmatically set the TLSServerParameters. This method may only be called by the factory.- Throws:
IOException
-
getTlsServerParameters
This method returns the programmatically set TLSServerParameters, not the TLSServerParametersType, which is the JAXB generated type used in SpringConfiguration.- Returns:
-
stop
public void stop() -
shutdown
public void shutdown()This method will shut down the server engine and remove it from the factory's cache. -
createSSLContext
- Throws:
Exception
-
getKeyManagersWithCertAlias
- Throws:
Exception
-
setThreadingParameters
This method sets the threading parameters for this particular server engine. This method may only be called by the factory. -
isSetThreadingParameters
public boolean isSetThreadingParameters()This method returns whether the threading parameters are set. -
getThreadingParameters
This method returns the threading parameters that have been set. This method may return null, if the threading parameters have not been set. -
setContinuationsEnabled
public void setContinuationsEnabled(boolean enabled) -
getContinuationsEnabled
public boolean getContinuationsEnabled() -
getMaxIdleTime
public int getMaxIdleTime() -
setMaxIdleTime
public void setMaxIdleTime(int maxIdleTime) -
setHandlers
set the Undertow server's handlers- Parameters:
h-
-
getHandlers
-