Class AsyncLegacyEntityProducer

  • All Implemented Interfaces:
    org.apache.hc.core5.http.EntityDetails, org.apache.hc.core5.http.nio.AsyncDataProducer, org.apache.hc.core5.http.nio.AsyncEntityProducer, org.apache.hc.core5.http.nio.ResourceHolder

    public final class AsyncLegacyEntityProducer
    extends org.apache.hc.core5.http.nio.support.classic.AbstractClassicEntityProducer
    • Constructor Summary

      Constructors 
      Constructor Description
      AsyncLegacyEntityProducer​(org.apache.hc.core5.http.HttpEntity entity, java.util.concurrent.Executor executor)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getContentEncoding()  
      protected void produceData​(org.apache.hc.core5.http.ContentType contentType, java.io.OutputStream outputStream)  
      void releaseResources()  
      • Methods inherited from class org.apache.hc.core5.http.nio.support.classic.AbstractClassicEntityProducer

        available, failed, getContentLength, getContentType, getException, getTrailerNames, isChunked, isRepeatable, produce
      • Methods inherited from class java.lang.Object

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

      • AsyncLegacyEntityProducer

        public AsyncLegacyEntityProducer​(org.apache.hc.core5.http.HttpEntity entity,
                                         java.util.concurrent.Executor executor)
    • Method Detail

      • produceData

        protected void produceData​(org.apache.hc.core5.http.ContentType contentType,
                                   java.io.OutputStream outputStream)
                            throws java.io.IOException
        Specified by:
        produceData in class org.apache.hc.core5.http.nio.support.classic.AbstractClassicEntityProducer
        Throws:
        java.io.IOException
      • getContentEncoding

        public java.lang.String getContentEncoding()
        Specified by:
        getContentEncoding in interface org.apache.hc.core5.http.EntityDetails
        Overrides:
        getContentEncoding in class org.apache.hc.core5.http.nio.support.classic.AbstractClassicEntityProducer
      • releaseResources

        public void releaseResources()
        Specified by:
        releaseResources in interface org.apache.hc.core5.http.nio.ResourceHolder
        Overrides:
        releaseResources in class org.apache.hc.core5.http.nio.support.classic.AbstractClassicEntityProducer