|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.littleshoot.proxy.DefaultHttpFilter
public class DefaultHttpFilter
Default implementation of a class for processing HTTP request rules.
| Constructor Summary | |
|---|---|
DefaultHttpFilter(HttpResponseFilter responseFilter,
HttpRequestMatcher... requestRules)
Creates a new set of HTTP request rules. |
|
| Method Summary | |
|---|---|
org.jboss.netty.handler.codec.http.HttpResponse |
filterResponse(org.jboss.netty.handler.codec.http.HttpRequest request,
org.jboss.netty.handler.codec.http.HttpResponse response)
Filters the HTTP response. |
boolean |
filterResponses(org.jboss.netty.handler.codec.http.HttpRequest httpRequest)
Returns whether or not to filter responses received from the specified HTTP request. |
int |
getMaxResponseSize()
Returns the maximum response size to expect in bytes for this filter. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultHttpFilter(HttpResponseFilter responseFilter,
HttpRequestMatcher... requestRules)
responseFilter - The class that filters responses to matching
requests.requestRules - The request rules for this set.| Method Detail |
|---|
public boolean filterResponses(org.jboss.netty.handler.codec.http.HttpRequest httpRequest)
HttpRequestMatcher
filterResponses in interface HttpRequestMatcherhttpRequest - The request to check.
true if we should apply this set of rules,
otherwise false.
public org.jboss.netty.handler.codec.http.HttpResponse filterResponse(org.jboss.netty.handler.codec.http.HttpRequest request,
org.jboss.netty.handler.codec.http.HttpResponse response)
HttpFilter
filterResponse in interface HttpFilterrequest - The HTTP request associated with the response.response - The response to filter.
public int getMaxResponseSize()
HttpFilter
getMaxResponseSize in interface HttpFilterpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||