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 java.lang.Object implements AsyncExecChainHandler
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.lang.String>acceptTokensprivate org.apache.hc.core5.http.config.Lookup<java.util.function.UnaryOperator<org.apache.hc.core5.http.nio.AsyncDataConsumer>>decodersprivate intmaxCodecListLen
-
Constructor Summary
Constructors Constructor Description ContentCompressionAsyncExec()ContentCompressionAsyncExec(int maxCodecListLen)Default: DEFLATE + GZIP (plusx-gzipalias).ContentCompressionAsyncExec(java.util.LinkedHashMap<java.lang.String,java.util.function.UnaryOperator<org.apache.hc.core5.http.nio.AsyncDataConsumer>> decoderMap)ContentCompressionAsyncExec(java.util.LinkedHashMap<java.lang.String,java.util.function.UnaryOperator<org.apache.hc.core5.http.nio.AsyncDataConsumer>> decoderMap, int maxCodecListLen)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(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)
-
-
-
Constructor Detail
-
ContentCompressionAsyncExec
public ContentCompressionAsyncExec(java.util.LinkedHashMap<java.lang.String,java.util.function.UnaryOperator<org.apache.hc.core5.http.nio.AsyncDataConsumer>> decoderMap, int maxCodecListLen)
-
ContentCompressionAsyncExec
public ContentCompressionAsyncExec(java.util.LinkedHashMap<java.lang.String,java.util.function.UnaryOperator<org.apache.hc.core5.http.nio.AsyncDataConsumer>> decoderMap)
-
ContentCompressionAsyncExec
public ContentCompressionAsyncExec(int maxCodecListLen)
Default: DEFLATE + GZIP (plusx-gzipalias).
-
ContentCompressionAsyncExec
public ContentCompressionAsyncExec()
-
-
Method Detail
-
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 java.io.IOException, org.apache.hc.core5.http.HttpExceptionDescription 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:
java.io.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)
-
-