public interface

ResponseFilter

com.ning.http.client.filter.ResponseFilter

Class Overview

A Filter interface that gets invoked before making the processing of the response bytes. ResponseFilter are invoked before the actual response's status code get processed. That means authorization, proxy authentication and redirects processing hasn't occured when ResponseFilter gets invoked.

Summary

Public Methods
abstract FilterContext filter(FilterContext ctx)
An AsyncHttpProvider will invoke filter(FilterContext) and will use the returned replayRequest() and getAsyncHandler() to decide if the response processing can continue.

Public Methods

public abstract FilterContext filter (FilterContext ctx)

An AsyncHttpProvider will invoke filter(FilterContext) and will use the returned replayRequest() and getAsyncHandler() to decide if the response processing can continue. If replayRequest() return true, a new request will be made using getRequest() and the current response processing will be ignored.

Parameters
ctx a FilterContext
Returns
Throws
FilterException to interrupt the filter processing.