Class HttpContinueAcceptingHandler

  • All Implemented Interfaces:
    HttpHandler

    public class HttpContinueAcceptingHandler
    extends java.lang.Object
    implements HttpHandler
    Handler that provides support for HTTP/1.1 continue responses.

    If the provided predicate returns true then the request will be accepted, otherwise it will be rejected. If no predicate is supplied then all requests will be accepted.

    Author:
    Stuart Douglas
    See Also:
    HttpContinue
    • Constructor Detail

      • HttpContinueAcceptingHandler

        public HttpContinueAcceptingHandler​(HttpHandler next,
                                            Predicate accept)
      • HttpContinueAcceptingHandler

        public HttpContinueAcceptingHandler​(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
      • toString

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