Class DefaultUndertowHost
java.lang.Object
org.apache.camel.component.undertow.DefaultUndertowHost
- All Implemented Interfaces:
UndertowHost
The default UndertowHost which manages standalone Undertow server.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.undertow.server.HttpHandlerregisterHandler(UndertowConsumer consumer, HttpHandlerRegistrationInfo registrationInfo, io.undertow.server.HttpHandler handler) Register a handler with the givenHttpHandlerRegistrationInfo.toString()voidunregisterHandler(UndertowConsumer consumer, HttpHandlerRegistrationInfo registrationInfo) Unregister a handler with the givenHttpHandlerRegistrationInfo.voidvalidateEndpointURI(URI httpURI) Validate whether this host can process the given URI
-
Constructor Details
-
DefaultUndertowHost
-
DefaultUndertowHost
-
-
Method Details
-
validateEndpointURI
Description copied from interface:UndertowHostValidate whether this host can process the given URI- Specified by:
validateEndpointURIin interfaceUndertowHost
-
registerHandler
public io.undertow.server.HttpHandler registerHandler(UndertowConsumer consumer, HttpHandlerRegistrationInfo registrationInfo, io.undertow.server.HttpHandler handler) Description copied from interface:UndertowHostRegister a handler with the givenHttpHandlerRegistrationInfo. Note that for some kinds of handlers (most notablyCamelWebSocketHandler), it is legal to call this method multiple times with equalHttpHandlerRegistrationInfoandHttpHandler. In such cases the returnedHttpHandlermay differ from the passedHttpHandlerand the returned instance is the effectively registered one for the givenHttpHandlerRegistrationInfo.- Specified by:
registerHandlerin interfaceUndertowHostregistrationInfo- theHttpHandlerRegistrationInforelated tohandlerhandler- theHttpHandlerto register- Returns:
- the given
handleror a differentHttpHandlerthat has been registered with the givenHttpHandlerRegistrationInfoearlier.
-
unregisterHandler
public void unregisterHandler(UndertowConsumer consumer, HttpHandlerRegistrationInfo registrationInfo) Description copied from interface:UndertowHostUnregister a handler with the givenHttpHandlerRegistrationInfo. Note that if#registerHandler(HttpHandlerRegistrationInfo, HttpHandler)was successfully invoked multiple times for an equivalentHttpHandlerRegistrationInfothen#unregisterHandler(HttpHandlerRegistrationInfo)must be called the same number of times to unregister the associated handler completely.- Specified by:
unregisterHandlerin interfaceUndertowHost
-
toString
-