@Contract(threading=STATELESS) public interface ExecChainHandler
Important: please note it is required for decorators that implement post execution aspects
or response post-processing of any sort to release resources associated with the response
by calling Closeable.close()
methods in case of an I/O, protocol or
runtime exception, or in case the response is not propagated to the caller.
Modifier and Type | Method and Description |
---|---|
ClassicHttpResponse |
execute(ClassicHttpRequest request,
ExecChain.Scope scope,
ExecChain chain)
Executes the actual HTTP request.
|
ClassicHttpResponse execute(ClassicHttpRequest request, ExecChain.Scope scope, ExecChain chain) throws IOException, HttpException
request
- the actual request.scope
- the execution scope .chain
- the next element in the request execution chain.IOException
HttpException