public interface UndertowHost
Modifier and Type | Method and Description |
---|---|
default io.undertow.server.HttpHandler |
registerHandler(HttpHandlerRegistrationInfo registrationInfo,
io.undertow.server.HttpHandler handler) |
io.undertow.server.HttpHandler |
registerHandler(HttpHandlerRegistrationInfo registrationInfo,
io.undertow.server.HttpHandler handler,
UndertowSecurityProvider securityProvider)
Register a handler with the given
HttpHandlerRegistrationInfo . |
default void |
unregisterHandler(HttpHandlerRegistrationInfo registrationInfo) |
void |
unregisterHandler(HttpHandlerRegistrationInfo registrationInfo,
UndertowSecurityProvider securityProvider)
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, UndertowSecurityProvider securityProvider)
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 handler
handler
- the HttpHandler
to registerhandler
or a different HttpHandler
that has been registered with the given
HttpHandlerRegistrationInfo
earlier.default io.undertow.server.HttpHandler registerHandler(HttpHandlerRegistrationInfo registrationInfo, io.undertow.server.HttpHandler handler)
void unregisterHandler(HttpHandlerRegistrationInfo registrationInfo, UndertowSecurityProvider securityProvider)
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.default void unregisterHandler(HttpHandlerRegistrationInfo registrationInfo)
Apache Camel