Class ContentCompressionAsyncExec

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<java.lang.String> acceptTokens  
      private org.apache.hc.core5.http.config.Lookup<java.util.function.UnaryOperator<org.apache.hc.core5.http.nio.AsyncDataConsumer>> decoders  
      private int maxCodecListLen  
    • Constructor Summary

      Constructors 
      Constructor Description
      ContentCompressionAsyncExec()  
      ContentCompressionAsyncExec​(int maxCodecListLen)
      Default: DEFLATE + GZIP (plus x-gzip alias).
      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
      void execute​(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.EntityDetails wrapEntityDetails​(org.apache.hc.core5.http.EntityDetails original)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • decoders

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

        private final java.util.List<java.lang.String> acceptTokens
      • maxCodecListLen

        private final int maxCodecListLen
    • 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 (plus x-gzip alias).
      • 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.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:
        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)