org.littleshoot.proxy
Class HttpRequestPathMatcher

java.lang.Object
  extended by org.littleshoot.proxy.HttpRequestPathMatcher
All Implemented Interfaces:
HttpRequestMatcher

public class HttpRequestPathMatcher
extends Object
implements HttpRequestMatcher

Request rule that operates on the request path.


Constructor Summary
HttpRequestPathMatcher(String path)
          Creates a new URI rule.
 
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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpRequestPathMatcher

public HttpRequestPathMatcher(String path)
Creates a new URI rule.

Parameters:
path - The path to match.
Method Detail

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.