public class HttpRequestHostMatcher extends Object implements HttpRequestMatcher
Constructor and Description |
---|
HttpRequestHostMatcher(String host)
Creates a new host rule.
|
Modifier and Type | Method and Description |
---|---|
boolean |
shouldFilterResponses(org.jboss.netty.handler.codec.http.HttpRequest httpRequest)
Returns whether or not to filter responses received from the specified
HTTP request.
|
public HttpRequestHostMatcher(String host)
host
- The host string to match.public boolean shouldFilterResponses(org.jboss.netty.handler.codec.http.HttpRequest httpRequest)
HttpRequestMatcher
shouldFilterResponses
in interface HttpRequestMatcher
httpRequest
- The request to check.true
if we should apply this set of rules,
otherwise false
.Copyright © 2009–2014 LittleShoot. All rights reserved.