@Contract(threading=STATELESS) @Internal public final class ContentCompressionAsyncExec extends Object implements AsyncExecChainHandler
| Constructor and Description |
|---|
ContentCompressionAsyncExec() |
ContentCompressionAsyncExec(int maxCodecListLen)
Default: DEFLATE + GZIP (plus
x-gzip alias). |
ContentCompressionAsyncExec(LinkedHashMap<String,UnaryOperator<AsyncDataConsumer>> decoderMap) |
ContentCompressionAsyncExec(LinkedHashMap<String,UnaryOperator<AsyncDataConsumer>> decoderMap,
int maxCodecListLen) |
| Modifier and Type | Method and Description |
|---|---|
void |
execute(HttpRequest request,
AsyncEntityProducer producer,
AsyncExecChain.Scope scope,
AsyncExecChain chain,
AsyncExecCallback cb)
Executes the actual HTTP request.
|
public ContentCompressionAsyncExec(LinkedHashMap<String,UnaryOperator<AsyncDataConsumer>> decoderMap, int maxCodecListLen)
public ContentCompressionAsyncExec(LinkedHashMap<String,UnaryOperator<AsyncDataConsumer>> decoderMap)
public ContentCompressionAsyncExec(int maxCodecListLen)
x-gzip alias).public ContentCompressionAsyncExec()
public void execute(HttpRequest request, AsyncEntityProducer producer, AsyncExecChain.Scope scope, AsyncExecChain chain, AsyncExecCallback cb) throws IOException, HttpException
AsyncExecChainHandlerexecute in interface AsyncExecChainHandlerrequest - the actual request.producer - the request entity producer or null if the request
does not enclose an entity.scope - the execution scope .chain - the next element in the request execution chain.cb - the execution callback.IOException - If an I/O error occurs.HttpException - If a protocol error occurs.Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.