org.apache.camel.component.netty.http
Class DefaultContextPathMatcher
java.lang.Object
org.apache.camel.component.netty.http.DefaultContextPathMatcher
- All Implemented Interfaces:
- ContextPathMatcher
public class DefaultContextPathMatcher
- extends Object
- implements ContextPathMatcher
A default ContextPathMatcher
which supports the matchOnUriPrefix option.
DefaultContextPathMatcher
public DefaultContextPathMatcher(String path,
boolean matchOnUriPrefix)
matches
public boolean matches(String target)
- Description copied from interface:
ContextPathMatcher
- Whether the target context-path matches.
- Specified by:
matches
in interface ContextPathMatcher
- Parameters:
target
- the context-path from the incoming HTTP request
- Returns:
- true to match, false if not.
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Apache Camel