public final class RestConsumerContextPathMatcher extends Object
matchBestPath(String, String, java.util.List)
with the request details
and the matcher returns the best matched, or null if none could be determined.
The RestConsumerContextPathMatcher.ConsumerPath
is used for the components to provide the details to the matcher.Modifier and Type | Class and Description |
---|---|
static interface |
RestConsumerContextPathMatcher.ConsumerPath<T>
Consumer path details which must be implemented and provided by the components.
|
Modifier and Type | Method and Description |
---|---|
static RestConsumerContextPathMatcher.ConsumerPath |
matchBestPath(String requestMethod,
String requestPath,
List<RestConsumerContextPathMatcher.ConsumerPath> consumerPaths)
Finds the best matching of the list of consumer paths that should service the incoming request.
|
static boolean |
matchPath(String requestPath,
String consumerPath,
boolean matchOnUriPrefix)
Does the incoming request match the given consumer path (ignore case)
|
public static boolean matchPath(String requestPath, String consumerPath, boolean matchOnUriPrefix)
requestPath
- the incoming request context pathconsumerPath
- a consumer pathmatchOnUriPrefix
- whether to use the matchOnPrefix optionpublic static RestConsumerContextPathMatcher.ConsumerPath matchBestPath(String requestMethod, String requestPath, List<RestConsumerContextPathMatcher.ConsumerPath> consumerPaths)
requestMethod
- the incoming request HTTP methodrequestPath
- the incoming request context pathconsumerPaths
- the list of consumer context path detailsApache Camel