Class SimpleResponseConsumer

    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleResponseConsumer​(org.apache.hc.core5.http.nio.AsyncEntityConsumer<byte[]> entityConsumer)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected SimpleHttpResponse buildResult​(org.apache.hc.core5.http.HttpResponse response, byte[] entity, org.apache.hc.core5.http.ContentType contentType)  
      static SimpleResponseConsumer create()  
      void informationResponse​(org.apache.hc.core5.http.HttpResponse response, org.apache.hc.core5.http.protocol.HttpContext context)  
      • Methods inherited from class org.apache.hc.core5.http.nio.support.AbstractAsyncResponseConsumer

        consume, consumeResponse, failed, releaseResources, streamEnd, updateCapacity
      • Methods inherited from class java.lang.Object

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

      • SimpleResponseConsumer

        SimpleResponseConsumer​(org.apache.hc.core5.http.nio.AsyncEntityConsumer<byte[]> entityConsumer)
    • Method Detail

      • informationResponse

        public void informationResponse​(org.apache.hc.core5.http.HttpResponse response,
                                        org.apache.hc.core5.http.protocol.HttpContext context)
                                 throws org.apache.hc.core5.http.HttpException,
                                        java.io.IOException
        Throws:
        org.apache.hc.core5.http.HttpException
        java.io.IOException
      • buildResult

        protected SimpleHttpResponse buildResult​(org.apache.hc.core5.http.HttpResponse response,
                                                 byte[] entity,
                                                 org.apache.hc.core5.http.ContentType contentType)
        Specified by:
        buildResult in class org.apache.hc.core5.http.nio.support.AbstractAsyncResponseConsumer<SimpleHttpResponse,​byte[]>