org.littleshoot.proxy
Class HttpRequestHostMatcher

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

public class HttpRequestHostMatcher
extends Object
implements HttpRequestMatcher

A rule for the host of an HTTP request.


Constructor Summary
HttpRequestHostMatcher(String host)
          Creates a new host rule.
 
Method Summary
 boolean shouldFilterResponses(org.jboss.netty.handler.codec.http.HttpRequest httpRequest)
          Returns whether or not to filter responses received from the specified HTTP request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpRequestHostMatcher

public HttpRequestHostMatcher(String host)
Creates a new host rule.

Parameters:
host - The host string to match.
Method Detail

shouldFilterResponses

public boolean shouldFilterResponses(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:
shouldFilterResponses in interface HttpRequestMatcher
Parameters:
httpRequest - The request to check.
Returns:
true if we should apply this set of rules, otherwise false.


Copyright © 2009-2011 LittleShoot. All Rights Reserved.