Class ConnectHandler

  • All Implemented Interfaces:
    HttpHandler

    public class ConnectHandler
    extends java.lang.Object
    implements HttpHandler
    Handlers HTTP CONNECT requests, allowing the server to act as a forward proxy. WARNING: Do not enable this without some kind of authentication / IP based restriction scheme in place, as this will allow malicious actors to use your server as an open relay.
    Author:
    Stuart Douglas
    • 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