public interface RequestFilter
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.getRequest() and FilterContext.getAsyncHandler() to continue the request
processing. |
<T> FilterContext<T> filter(FilterContext<T> ctx) throws FilterException
AsyncHttpClient
will invoke filter(org.asynchttpclient.filter.FilterContext<T>)
and will use the
returned FilterContext.getRequest()
and FilterContext.getAsyncHandler()
to continue the request
processing.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 © 2019. All rights reserved.