com.ning.http.client.filter
Interface RequestFilter

All Known Implementing Classes:
ThrottleRequestFilter

public interface RequestFilter

A Filter interface that gets invoked before making an actual request.


Method Summary
 FilterContext filter(FilterContext ctx)
          An AsyncHttpProvider will invoke filter(com.ning.http.client.filter.FilterContext) and will use the returned FilterContext.getRequest() and FilterContext.getAsyncHandler() to continue the request processing.
 

Method Detail

filter

FilterContext filter(FilterContext ctx)
                     throws FilterException
An AsyncHttpProvider will invoke filter(com.ning.http.client.filter.FilterContext) and will use the returned FilterContext.getRequest() and FilterContext.getAsyncHandler() to continue the request processing.

Parameters:
ctx - a FilterContext
Returns:
FilterContext. The FilterContext instance may not the same as the original one.
Throws:
FilterException - to interrupt the filter processing.


Copyright © 2011. All Rights Reserved.