public class HttpListenerRegistry extends Object implements RequestHandlerProvider
| Modifier and Type | Class and Description |
|---|---|
class |
HttpListenerRegistry.PathMap |
class |
HttpListenerRegistry.RequestHandlerMatcherPair |
class |
HttpListenerRegistry.ServerAddressRequestHandlerRegistry |
| Constructor and Description |
|---|
HttpListenerRegistry() |
| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.http.api.server.RequestHandlerManager |
addRequestHandler(org.mule.runtime.http.api.server.HttpServer server,
org.mule.runtime.http.api.server.RequestHandler requestHandler,
org.mule.runtime.http.api.server.PathAndMethodRequestMatcher requestMatcher) |
org.mule.runtime.http.api.server.RequestHandler |
getRequestHandler(org.mule.runtime.http.api.server.ServerAddress serverAddress,
org.mule.runtime.http.api.domain.message.request.HttpRequest request)
Retrieves a RequestHandler to handle the http request
|
boolean |
hasHandlerFor(org.mule.runtime.http.api.server.ServerAddress serverAddress)
Checks if a handler for a specific
ServerAddress is present |
void |
removeHandlersFor(org.mule.runtime.http.api.server.HttpServer server) |
public org.mule.runtime.http.api.server.RequestHandlerManager addRequestHandler(org.mule.runtime.http.api.server.HttpServer server,
org.mule.runtime.http.api.server.RequestHandler requestHandler,
org.mule.runtime.http.api.server.PathAndMethodRequestMatcher requestMatcher)
public void removeHandlersFor(org.mule.runtime.http.api.server.HttpServer server)
public boolean hasHandlerFor(org.mule.runtime.http.api.server.ServerAddress serverAddress)
RequestHandlerProviderServerAddress is presenthasHandlerFor in interface RequestHandlerProviderserverAddress - the address to check fortrue if there is a handler present for the address, false otherwisepublic org.mule.runtime.http.api.server.RequestHandler getRequestHandler(org.mule.runtime.http.api.server.ServerAddress serverAddress,
org.mule.runtime.http.api.domain.message.request.HttpRequest request)
RequestHandlerProvidergetRequestHandler in interface RequestHandlerProviderserverAddress - address in which the http request was maderequest - the http request contentCopyright © 2003–2018 MuleSoft, Inc.. All rights reserved.