public class DefaultRequestMatcherRegistry<T> extends Object implements org.mule.runtime.http.api.utils.RequestMatcherRegistry<T>
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultRequestMatcherRegistry.DefaultRequestMatcherRegistryEntry |
static class |
DefaultRequestMatcherRegistry.Path<H>
Represents a URI path, which can be a parent to regular sub paths, a catch all sub path (/*) and a URI param path (/{param}).
|
static class |
DefaultRequestMatcherRegistry.RequestHandlerMatcherPair<A>
Association of a
RequestHandler and a PathAndMethodRequestMatcher as they were introduced, which allows a
joint view and availability handling. |
| Constructor and Description |
|---|
DefaultRequestMatcherRegistry() |
DefaultRequestMatcherRegistry(Supplier<T> noMatchMismatchHandler,
Supplier<T> notFoundMismatchHandler,
Supplier<T> invalidRequestHandler,
Supplier<T> notAvailableMismatchHandler) |
| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.http.api.utils.RequestMatcherRegistry.RequestMatcherRegistryEntry |
add(org.mule.runtime.http.api.server.PathAndMethodRequestMatcher requestMatcher,
T requestHandler)
Adds a handler to the specified path, analyzing the current
DefaultRequestMatcherRegistry.Path structure to create new paths if necessary. |
T |
find(org.mule.runtime.http.api.domain.message.request.HttpRequest request)
Navigates the current
DefaultRequestMatcherRegistry.Path structure searching for possible handlers for the request path required, then checks which
one matches the request method as well. |
public org.mule.runtime.http.api.utils.RequestMatcherRegistry.RequestMatcherRegistryEntry add(org.mule.runtime.http.api.server.PathAndMethodRequestMatcher requestMatcher,
T requestHandler)
DefaultRequestMatcherRegistry.Path structure to create new paths if necessary.add in interface org.mule.runtime.http.api.utils.RequestMatcherRegistry<T>requestMatcher - the matcher of paths and methods to userequestHandler - the handler for requests to addRequestHandlerManager for the added handler that allows enabling, disabling and disposing itpublic T find(org.mule.runtime.http.api.domain.message.request.HttpRequest request)
DefaultRequestMatcherRegistry.Path structure searching for possible handlers for the request path required, then checks which
one matches the request method as well. Handles availability, existence and permission as well.find in interface org.mule.runtime.http.api.utils.RequestMatcherRegistry<T>request - the received HttpRequestRequestHandlerCopyright © 2003–2019 MuleSoft, Inc.. All rights reserved.