public interface UndertowHost
| Modifier and Type | Method and Description |
|---|---|
io.undertow.server.HttpHandler |
registerHandler(HttpHandlerRegistrationInfo registrationInfo,
io.undertow.server.HttpHandler handler)
Register a handler with the given
HttpHandlerRegistrationInfo. |
void |
unregisterHandler(HttpHandlerRegistrationInfo registrationInfo)
Unregister a handler with the given
HttpHandlerRegistrationInfo. |
void |
validateEndpointURI(URI httpURI)
Validate whether this host can process the given URI
|
void validateEndpointURI(URI httpURI)
io.undertow.server.HttpHandler registerHandler(HttpHandlerRegistrationInfo registrationInfo, io.undertow.server.HttpHandler handler)
HttpHandlerRegistrationInfo. Note that for some kinds of handlers (most
notably CamelWebSocketHandler), it is legal to call this method multiple times with equal
HttpHandlerRegistrationInfo and HttpHandler. In such cases the returned HttpHandler may
differ from the passed HttpHandler and the returned instance is the effectively registered one for the
given HttpHandlerRegistrationInfo.registrationInfo - the HttpHandlerRegistrationInfo related to handlerhandler - the HttpHandler to registerhandler or a different HttpHandler that has been registered with the given
HttpHandlerRegistrationInfo earlier.void unregisterHandler(HttpHandlerRegistrationInfo registrationInfo)
HttpHandlerRegistrationInfo. Note that if
registerHandler(HttpHandlerRegistrationInfo, HttpHandler) was successfully invoked multiple times for an
equivalent HttpHandlerRegistrationInfo then unregisterHandler(HttpHandlerRegistrationInfo) must
be called the same number of times to unregister the associated handler completely.Apache Camel