public class RestContextPathMatcher extends DefaultContextPathMatcher
ContextPathMatcher that supports the Rest DSL.matchOnUriPrefix, path| Constructor and Description |
|---|
RestContextPathMatcher(String rawPath,
String path,
String restrictMethod,
boolean matchOnUriPrefix) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
matchesRest(String path,
boolean wildcard)
Whether the target context-path matches a REST url.
|
boolean |
matchMethod(String method,
String restrict)
Matches the given request HTTP method with the configured HTTP method of the consumer
|
boolean |
matchRestPath(String requestPath,
String consumerPath,
boolean wildcard)
Matches the given request path with the configured consumer path
|
getPath, matchespublic boolean matchesRest(String path, boolean wildcard)
ContextPathMatchermatchesRest in interface ContextPathMatchermatchesRest in class DefaultContextPathMatcherpath - the context-path from the incoming HTTP requestwildcard - whether to match strict or by wildcardspublic boolean matchMethod(String method, String restrict)
ContextPathMatchermatchMethod in interface ContextPathMatchermatchMethod in class DefaultContextPathMatchermethod - the request HTTP methodrestrict - the consumer configured HTTP restrict methodpublic boolean matchRestPath(String requestPath, String consumerPath, boolean wildcard)
requestPath - the request pathconsumerPath - the consumer path which may use { } tokenspublic boolean equals(Object o)
equals in class DefaultContextPathMatcherpublic int hashCode()
hashCode in class DefaultContextPathMatcherApache Camel