org.apache.camel.component.netty.http
Class DefaultContextPathMatcher

java.lang.Object
  extended by 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.


Constructor Summary
DefaultContextPathMatcher(String path, boolean matchOnUriPrefix)
           
 
Method Summary
 boolean equals(Object o)
           
 int hashCode()
           
 boolean matches(String target)
          Whether the target context-path matches.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultContextPathMatcher

public DefaultContextPathMatcher(String path,
                                 boolean matchOnUriPrefix)
Method Detail

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