com.ning.http.client.filter
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 |
---|---|
FilterContext |
filter(FilterContext ctx)
An
AsyncHttpProvider will invoke filter(com.ning.http.client.filter.FilterContext) and will use the
returned FilterContext.replayRequest() and FilterContext.getAsyncHandler() to decide if the response
processing can continue. |
FilterContext filter(FilterContext ctx) throws FilterException
AsyncHttpProvider
will invoke filter(com.ning.http.client.filter.FilterContext)
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 FilterContext
FilterContext
. The FilterContext
instance may not the same as the original one.FilterException
- to interrupt the filter processing.Copyright © 2014. All Rights Reserved.