Class NullRequestHandler

    • Constructor Detail

      • NullRequestHandler

        public NullRequestHandler()
    • Method Detail

      • handle

        public void handle​(java.lang.Object obj,
                           HttpAsyncExchange httpexchange,
                           HttpContext context)
        Description copied from interface: HttpAsyncRequestHandler
        Triggered to complete request processing and to initiate the process of generating a response. This method does not have to submit a response immediately. It can defer transmission of an HTTP response back to the client without blocking the I/O thread by delegating the process of request handling to another service or a worker thread. HTTP response can be submitted as a later a later point of time using HttpAsyncExchange once response content becomes available.
        Specified by:
        handle in interface HttpAsyncRequestHandler<java.lang.Object>
        Parameters:
        obj - request data returned by the request consumer.
        httpexchange - HTTP exchange.
        context - HTTP execution context.