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 occurred when ResponseFilter
gets invoked.Modifier and Type | Method and Description |
---|---|
<T> FilterContext<T> |
filter(FilterContext<T> ctx)
An
AsyncHttpClient will invoke filter(org.asynchttpclient.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
AsyncHttpClient
will invoke filter(org.asynchttpclient.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.T
- the handler result typectx
- a FilterContext
FilterContext
. The FilterContext
instance may not the same as the original one.FilterException
- to interrupt the filter processing.Copyright © 2015. All Rights Reserved.