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 Details

    • decoders

      private final org.apache.hc.core5.http.config.Lookup<UnaryOperator<org.apache.hc.core5.http.nio.AsyncDataConsumer>> decoders
    • acceptTokens

      private final List<String> 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 (plus x-gzip alias).
    • 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: AsyncExecChainHandler
      Executes 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:
      execute in interface AsyncExecChainHandler
      Parameters:
      request - 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.
      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)