Package 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
Modifier and TypeMethodDescription<T> FilterContext<T>filter(FilterContext<T> ctx) AnAsyncHttpProviderwill invokefilter(com.ning.http.client.filter.FilterContext<T>)and will use the returnedFilterContext.getRequest()andFilterContext.getAsyncHandler()to continue the request processing.
-
Method Details
-
filter
AnAsyncHttpProviderwill invokefilter(com.ning.http.client.filter.FilterContext<T>)and will use the returnedFilterContext.getRequest()andFilterContext.getAsyncHandler()to continue the request processing.- Parameters:
ctx- aFilterContext- Returns:
FilterContext. TheFilterContextinstance may not the same as the original one.- Throws:
FilterException- to interrupt the filter processing.
-