Class CXFHttpAsyncResponseConsumer

java.lang.Object
org.apache.cxf.transport.http.asyncclient.hc5.CXFHttpAsyncResponseConsumer
All Implemented Interfaces:
org.apache.hc.core5.http.nio.AsyncDataConsumer, org.apache.hc.core5.http.nio.AsyncResponseConsumer<Boolean>, org.apache.hc.core5.http.nio.ResourceHolder

public class CXFHttpAsyncResponseConsumer extends Object implements org.apache.hc.core5.http.nio.AsyncResponseConsumer<Boolean>
  • Constructor Details

  • Method Details

    • releaseResources

      public void releaseResources()
      Specified by:
      releaseResources in interface org.apache.hc.core5.http.nio.ResourceHolder
    • updateCapacity

      public void updateCapacity(org.apache.hc.core5.http.nio.CapacityChannel capacityChannel) throws IOException
      Specified by:
      updateCapacity in interface org.apache.hc.core5.http.nio.AsyncDataConsumer
      Throws:
      IOException
    • consumeResponse

      public void consumeResponse(org.apache.hc.core5.http.HttpResponse resp, org.apache.hc.core5.http.EntityDetails entityDetails, org.apache.hc.core5.http.protocol.HttpContext context, org.apache.hc.core5.concurrent.FutureCallback<Boolean> resultCallback) throws org.apache.hc.core5.http.HttpException, IOException
      Specified by:
      consumeResponse in interface org.apache.hc.core5.http.nio.AsyncResponseConsumer<Boolean>
      Throws:
      org.apache.hc.core5.http.HttpException
      IOException
    • consume

      public void consume(ByteBuffer src) throws IOException
      Specified by:
      consume in interface org.apache.hc.core5.http.nio.AsyncDataConsumer
      Throws:
      IOException
    • failed

      public void failed(Exception ex)
      Specified by:
      failed in interface org.apache.hc.core5.http.nio.AsyncResponseConsumer<Boolean>
    • streamEnd

      public void streamEnd(List<? extends org.apache.hc.core5.http.Header> trailers) throws org.apache.hc.core5.http.HttpException, IOException
      Specified by:
      streamEnd in interface org.apache.hc.core5.http.nio.AsyncDataConsumer
      Throws:
      org.apache.hc.core5.http.HttpException
      IOException
    • informationResponse

      public void informationResponse(org.apache.hc.core5.http.HttpResponse resp, org.apache.hc.core5.http.protocol.HttpContext context) throws org.apache.hc.core5.http.HttpException, IOException
      Specified by:
      informationResponse in interface org.apache.hc.core5.http.nio.AsyncResponseConsumer<Boolean>
      Throws:
      org.apache.hc.core5.http.HttpException
      IOException
    • getException

      public Exception getException()
    • isCompleted

      public boolean isCompleted()