Class BlockingHandler

  • All Implemented Interfaces:
    HttpHandler

    public final class BlockingHandler
    extends java.lang.Object
    implements HttpHandler
    A HttpHandler that initiates a blocking request. If the thread is currently running in the io thread it will be dispatched.
    Author:
    Stuart Douglas, David M. Lloyd
    • Constructor Detail

      • BlockingHandler

        public BlockingHandler​(HttpHandler handler)
      • BlockingHandler

        public BlockingHandler()
    • 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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object