Interface UndertowHost
-
- All Known Implementing Classes:
DefaultUndertowHost
public interface UndertowHostAn undertow host abstraction
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.undertow.server.HttpHandlerregisterHandler(UndertowConsumer consumer, HttpHandlerRegistrationInfo registrationInfo, io.undertow.server.HttpHandler handler)Register a handler with the givenHttpHandlerRegistrationInfo.voidunregisterHandler(UndertowConsumer consumer, HttpHandlerRegistrationInfo registrationInfo)Unregister a handler with the givenHttpHandlerRegistrationInfo.voidvalidateEndpointURI(URI httpURI)Validate whether this host can process the given URI
-
-
-
Method Detail
-
validateEndpointURI
void validateEndpointURI(URI httpURI)
Validate whether this host can process the given URI
-
registerHandler
io.undertow.server.HttpHandler registerHandler(UndertowConsumer consumer, HttpHandlerRegistrationInfo registrationInfo, io.undertow.server.HttpHandler handler)
Register 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.- Parameters:
registrationInfo- theHttpHandlerRegistrationInforelated tohandlerhandler- theHttpHandlerto register- Returns:
- the given
handleror a differentHttpHandlerthat has been registered with the givenHttpHandlerRegistrationInfoearlier.
-
unregisterHandler
void unregisterHandler(UndertowConsumer consumer, HttpHandlerRegistrationInfo registrationInfo)
Unregister 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.
-
-