Interface UndertowHost
-
- All Known Implementing Classes:
DefaultUndertowHost
public interface UndertowHost
An undertow host abstraction
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.undertow.server.HttpHandler
registerHandler(UndertowConsumer consumer, HttpHandlerRegistrationInfo registrationInfo, io.undertow.server.HttpHandler handler)
Register a handler with the givenHttpHandlerRegistrationInfo
.void
unregisterHandler(UndertowConsumer consumer, HttpHandlerRegistrationInfo registrationInfo)
Unregister a handler with the givenHttpHandlerRegistrationInfo
.void
validateEndpointURI(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 equalHttpHandlerRegistrationInfo
andHttpHandler
. In such cases the returnedHttpHandler
may differ from the passedHttpHandler
and the returned instance is the effectively registered one for the givenHttpHandlerRegistrationInfo
.- Parameters:
registrationInfo
- theHttpHandlerRegistrationInfo
related tohandler
handler
- theHttpHandler
to register- Returns:
- the given
handler
or a differentHttpHandler
that has been registered with the givenHttpHandlerRegistrationInfo
earlier.
-
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 equivalentHttpHandlerRegistrationInfo
then#unregisterHandler(HttpHandlerRegistrationInfo)
must be called the same number of times to unregister the associated handler completely.
-
-