Class StoredResponseHandler

  • All Implemented Interfaces:
    HttpHandler

    public class StoredResponseHandler
    extends java.lang.Object
    implements HttpHandler
    A handler that buffers the full response and attaches it to the exchange. This makes use of StoredResponseStreamSinkConduit

    This will be made available once the response is fully complete, so should generally be read in an ExchangeCompletionListener

    Author:
    Stuart Douglas
    • Constructor Detail

      • StoredResponseHandler

        public StoredResponseHandler​(HttpHandler next)
    • Method Detail

      • handleRequest

        public void handleRequest​(HttpServerExchange exchange)
                           throws java.lang.Exception
        Description copied from interface: HttpHandler
        Handle the request.
        Specified by:
        handleRequest in interface HttpHandler
        Parameters:
        exchange - the HTTP request/response exchange
        Throws:
        java.lang.Exception