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, matches
public boolean matchesRest(String path, boolean wildcard)
ContextPathMatcher
matchesRest
in interface ContextPathMatcher
matchesRest
in class DefaultContextPathMatcher
path
- the context-path from the incoming HTTP requestwildcard
- whether to match strict or by wildcardspublic boolean matchMethod(String method, String restrict)
ContextPathMatcher
matchMethod
in interface ContextPathMatcher
matchMethod
in class DefaultContextPathMatcher
method
- 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 DefaultContextPathMatcher
public int hashCode()
hashCode
in class DefaultContextPathMatcher
Apache Camel