public class DefaultUndertowHost extends Object implements UndertowHost
| Constructor and Description |
|---|
DefaultUndertowHost(UndertowHostKey key) |
DefaultUndertowHost(UndertowHostKey key,
UndertowHostOptions options) |
| Modifier and Type | Method and Description |
|---|---|
io.undertow.server.HttpHandler |
registerHandler(UndertowConsumer consumer,
HttpHandlerRegistrationInfo registrationInfo,
io.undertow.server.HttpHandler handler)
Register a handler with the given
HttpHandlerRegistrationInfo. |
String |
toString() |
void |
unregisterHandler(UndertowConsumer consumer,
HttpHandlerRegistrationInfo registrationInfo)
Unregister a handler with the given
HttpHandlerRegistrationInfo. |
void |
validateEndpointURI(URI httpURI)
Validate whether this host can process the given URI
|
public DefaultUndertowHost(UndertowHostKey key)
public DefaultUndertowHost(UndertowHostKey key, UndertowHostOptions options)
public void validateEndpointURI(URI httpURI)
UndertowHostvalidateEndpointURI in interface UndertowHostpublic io.undertow.server.HttpHandler registerHandler(UndertowConsumer consumer, HttpHandlerRegistrationInfo registrationInfo, io.undertow.server.HttpHandler handler)
UndertowHostHttpHandlerRegistrationInfo. 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.registerHandler in interface UndertowHostregistrationInfo - the HttpHandlerRegistrationInfo related to handlerhandler - the HttpHandler to registerhandler or a different HttpHandler that has been registered
with the given HttpHandlerRegistrationInfo earlier.public void unregisterHandler(UndertowConsumer consumer, HttpHandlerRegistrationInfo registrationInfo)
UndertowHostHttpHandlerRegistrationInfo. 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.unregisterHandler in interface UndertowHostApache Camel