Interface UndertowHost
- All Known Implementing Classes:
DefaultUndertowHost
public interface UndertowHost
An undertow host abstraction
-
Method Summary
Modifier and TypeMethodDescriptionio.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 Details
-
validateEndpointURI
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
Unregister a handler with the givenHttpHandlerRegistrationInfo. Note that ifwas successfully invoked multiple times for an equivalentinvalid reference
#registerHandler(HttpHandlerRegistrationInfo, HttpHandler)HttpHandlerRegistrationInfothenmust be called the same number of times to unregister the associated handler completely.invalid reference
#unregisterHandler(HttpHandlerRegistrationInfo)
-