T - the type of object associated to the registrypublic interface RequestMatcherRegistry<T>
PathAndMethodRequestMatchers that can handle collision validation and
searching through wildcard paths for a matching entry. Additionally, entries can be managed to be temporarily disabled or
removed entirely.| Modifier and Type | Interface and Description |
|---|---|
static interface |
RequestMatcherRegistry.RequestMatcherRegistryBuilder<T>
Builder of
RequestMatcherRegistry. |
static interface |
RequestMatcherRegistry.RequestMatcherRegistryEntry
Entry of a
RequestMatcherRegistry which allows managing it's visibility. |
| Modifier and Type | Method and Description |
|---|---|
RequestMatcherRegistry.RequestMatcherRegistryEntry |
add(PathAndMethodRequestMatcher matcher,
T item)
Includes a new matcher to return the desired
item. |
T |
find(HttpRequest request)
Searches this registry for the most specific match for the given
HttpRequest considering all registered
PathAndMethodRequestMatchers. |
default T |
find(String method,
String path)
Searches this registry for the most specific match for the given
HttpRequest considering all registered
PathAndMethodRequestMatchers. |
RequestMatcherRegistry.RequestMatcherRegistryEntry add(PathAndMethodRequestMatcher matcher, T item)
item. The matcher's path and method will be analysed to determine whether
any collisions exists with the already registered objects.matcher - the PathAndMethodRequestMatcher to associate with the itemitem - the object to register under the matcherMatcherCollisionException - if a collision is foundT find(HttpRequest request)
HttpRequest considering all registered
PathAndMethodRequestMatchers.request - the HttpRequest to match againstdefault T find(String method, String path)
HttpRequest considering all registered
PathAndMethodRequestMatchers.method - the HTTP method to match againstpath - the full path to match against (must not contain wildcard or parametrization)Copyright © 2003–2020 MuleSoft, Inc.. All rights reserved.