public class DefaultContextPathMatcher extends Object implements ContextPathMatcher
ContextPathMatcher
which supports the matchOnUriPrefix option.Constructor and Description |
---|
DefaultContextPathMatcher(String path,
boolean matchOnUriPrefix) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getPath() |
int |
hashCode() |
boolean |
matches(String path)
Whether the target context-path matches a regular url.
|
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
|
public DefaultContextPathMatcher(String path, boolean matchOnUriPrefix)
public boolean matches(String path)
ContextPathMatcher
matches
in interface ContextPathMatcher
path
- the context-path from the incoming HTTP requestpublic boolean matchesRest(String path, boolean wildcard)
ContextPathMatcher
matchesRest
in interface ContextPathMatcher
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
method
- the request HTTP methodrestrict
- the consumer configured HTTP restrict methodpublic String getPath()
Apache Camel