Interface AsyncClientExchangeHandler

    • Method Detail

      • produceRequest

        void produceRequest​(RequestChannel channel,
                            HttpContext context)
                     throws HttpException,
                            java.io.IOException
        Triggered to signal the ability of the underlying request channel to accept a request messages. The data producer can choose to send a request message immediately inside the call or asynchronously at some later point.
        Parameters:
        channel - the request channel capable to accepting a request message.
        context - the actual execution context.
        Throws:
        HttpException
        java.io.IOException
      • consumeResponse

        void consumeResponse​(HttpResponse response,
                             EntityDetails entityDetails,
                             HttpContext context)
                      throws HttpException,
                             java.io.IOException
        Triggered to signal receipt of a response message head.
        Parameters:
        response - the response message head.
        entityDetails - the response entity details or null if the response does not enclose an entity.
        context - the actual execution context.
        Throws:
        HttpException
        java.io.IOException
      • consumeInformation

        void consumeInformation​(HttpResponse response,
                                HttpContext context)
                         throws HttpException,
                                java.io.IOException
        Triggered to signal receipt of an intermediate (1xx) HTTP response.
        Parameters:
        response - the intermediate (1xx) HTTP response.
        context - the actual execution context.
        Throws:
        HttpException
        java.io.IOException
      • cancel

        void cancel()
        Triggered to cancel the message exchange.