public interface ResponseFilter
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.| Modifier and Type | Method and Description |
|---|---|
<T> FilterContext<T> |
filter(FilterContext<T> ctx)
An
AsyncHttpProvider will invoke filter(com.ning.http.client.filter.FilterContext<T>) and will use the
returned FilterContext.replayRequest() and FilterContext.getAsyncHandler() to decide if the response
processing can continue. |
<T> FilterContext<T> filter(FilterContext<T> ctx) throws FilterException
AsyncHttpProvider will invoke filter(com.ning.http.client.filter.FilterContext<T>) and will use the
returned FilterContext.replayRequest() and FilterContext.getAsyncHandler() to decide if the response
processing can continue. If FilterContext.replayRequest() return true, a new request will be made
using FilterContext.getRequest() and the current response processing will be ignored.ctx - a FilterContextFilterContext. The FilterContext instance may not the same as the original one.FilterException - to interrupt the filter processing.Copyright © 2020. All Rights Reserved.