org.littleshoot.proxy
Class HttpRequestPathMatcher
java.lang.Object
org.littleshoot.proxy.HttpRequestPathMatcher
- All Implemented Interfaces:
- HttpRequestMatcher
public class HttpRequestPathMatcher
- extends Object
- implements HttpRequestMatcher
Request rule that operates on the request path.
|
Method Summary |
boolean |
filterResponses(org.jboss.netty.handler.codec.http.HttpRequest httpRequest)
Returns whether or not to filter responses received from the specified
HTTP request. |
String |
toString()
|
HttpRequestPathMatcher
public HttpRequestPathMatcher(String path)
- Creates a new URI rule.
- Parameters:
path - The path to match.
filterResponses
public boolean filterResponses(org.jboss.netty.handler.codec.http.HttpRequest httpRequest)
- Description copied from interface:
HttpRequestMatcher
- Returns whether or not to filter responses received from the specified
HTTP request.
- Specified by:
filterResponses in interface HttpRequestMatcher
- Parameters:
httpRequest - The request to check.
- Returns:
true if we should apply this set of rules,
otherwise false.
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2009-2013 LittleShoot. All Rights Reserved.