Class LogbookHttpAsyncResponseConsumer<T>

  • All Implemented Interfaces:
    Closeable, AutoCloseable, org.apache.http.concurrent.Cancellable, org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>

    @API(status=EXPERIMENTAL)
    public final class LogbookHttpAsyncResponseConsumer<T>
    extends Object
    • Constructor Detail

      • LogbookHttpAsyncResponseConsumer

        public LogbookHttpAsyncResponseConsumer​(org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T> consumer)
    • Method Detail

      • delegate

        protected org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T> delegate()
      • responseReceived

        public void responseReceived​(org.apache.http.HttpResponse response)
                              throws IOException,
                                     org.apache.http.HttpException
        Specified by:
        responseReceived in interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>
        Throws:
        IOException
        org.apache.http.HttpException
      • responseCompleted

        public void responseCompleted​(org.apache.http.protocol.HttpContext context)
        Specified by:
        responseCompleted in interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>
      • consumeContent

        public void consumeContent​(org.apache.http.nio.ContentDecoder decoder,
                                   org.apache.http.nio.IOControl control)
                            throws IOException
        Specified by:
        consumeContent in interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>
        Throws:
        IOException
      • cancel

        public boolean cancel()
        Specified by:
        cancel in interface org.apache.http.concurrent.Cancellable
      • isDone

        public boolean isDone()
        Specified by:
        isDone in interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>
      • getResult

        public T getResult()
        Specified by:
        getResult in interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>
      • failed

        public void failed​(Exception e)
        Specified by:
        failed in interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>
      • getException

        public Exception getException()
        Specified by:
        getException in interface org.apache.http.nio.protocol.HttpAsyncResponseConsumer<T>