public class HttpListenerRegistry extends Object implements RequestHandlerProvider
| 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)
Introduces a new
RequestHandler for requests matching a given PathAndMethodRequestMatcher in the provided
HttpServer. |
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)
Removes all handlers for a given
HttpServer. |
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)
RequestHandler for requests matching a given PathAndMethodRequestMatcher in the provided
HttpServer.server - where the handler should be addedrequestHandler - the handler to addrequestMatcher - the matcher to be applied for the handlerRequestHandlerManager for the added handler that allows enabling, disabling and disposing itpublic void removeHandlersFor(org.mule.runtime.http.api.server.HttpServer server)
HttpServer.server - whose handlers will be removedpublic 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–2025 MuleSoft, Inc.. All rights reserved.