Class ContentCompressionAsyncExec
java.lang.Object
org.apache.hc.client5.http.impl.async.ContentCompressionAsyncExec
- All Implemented Interfaces:
AsyncExecChainHandler
@Contract(threading=STATELESS)
@Internal
public final class ContentCompressionAsyncExec
extends Object
implements AsyncExecChainHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.apache.hc.core5.http.config.Lookup<UnaryOperator<org.apache.hc.core5.http.nio.AsyncDataConsumer>> private final int -
Constructor Summary
ConstructorsConstructorDescriptionContentCompressionAsyncExec(int maxCodecListLen) Default: DEFLATE + GZIP (plusx-gzipalias).ContentCompressionAsyncExec(LinkedHashMap<String, UnaryOperator<org.apache.hc.core5.http.nio.AsyncDataConsumer>> decoderMap) ContentCompressionAsyncExec(LinkedHashMap<String, UnaryOperator<org.apache.hc.core5.http.nio.AsyncDataConsumer>> decoderMap, int maxCodecListLen) -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.nio.AsyncEntityProducer producer, AsyncExecChain.Scope scope, AsyncExecChain chain, AsyncExecCallback cb) Executes the actual HTTP request.private static org.apache.hc.core5.http.EntityDetailswrapEntityDetails(org.apache.hc.core5.http.EntityDetails original)
-
Field Details
-
decoders
private final org.apache.hc.core5.http.config.Lookup<UnaryOperator<org.apache.hc.core5.http.nio.AsyncDataConsumer>> decoders -
acceptTokens
-
maxCodecListLen
private final int maxCodecListLen
-
-
Constructor Details
-
ContentCompressionAsyncExec
public ContentCompressionAsyncExec(LinkedHashMap<String, UnaryOperator<org.apache.hc.core5.http.nio.AsyncDataConsumer>> decoderMap, int maxCodecListLen) -
ContentCompressionAsyncExec
public ContentCompressionAsyncExec(LinkedHashMap<String, UnaryOperator<org.apache.hc.core5.http.nio.AsyncDataConsumer>> decoderMap) -
ContentCompressionAsyncExec
public ContentCompressionAsyncExec(int maxCodecListLen) Default: DEFLATE + GZIP (plusx-gzipalias). -
ContentCompressionAsyncExec
public ContentCompressionAsyncExec()
-
-
Method Details
-
execute
public void execute(org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.nio.AsyncEntityProducer producer, AsyncExecChain.Scope scope, AsyncExecChain chain, AsyncExecCallback cb) throws IOException, org.apache.hc.core5.http.HttpException Description copied from interface:AsyncExecChainHandlerExecutes the actual HTTP request. The handler can choose to return a response message immediately inside the call or asynchronously at some later point or delegate request execution to the next element in the execution chain.- Specified by:
executein interfaceAsyncExecChainHandler- Parameters:
request- the actual request.producer- the request entity producer ornullif the request does not enclose an entity.scope- the execution scope .chain- the next element in the request execution chain.cb- the execution callback.- Throws:
IOException- If an I/O error occurs.org.apache.hc.core5.http.HttpException- If a protocol error occurs.
-
wrapEntityDetails
private static org.apache.hc.core5.http.EntityDetails wrapEntityDetails(org.apache.hc.core5.http.EntityDetails original)
-