Package io.undertow.server.handlers
Class ConnectHandler
- java.lang.Object
-
- io.undertow.server.handlers.ConnectHandler
-
- All Implemented Interfaces:
HttpHandler
public class ConnectHandler extends 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
-
-
Constructor Summary
Constructors Constructor Description ConnectHandler(HttpHandler next)
ConnectHandler(HttpHandler next, Predicate allowed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleRequest(HttpServerExchange exchange)
Handle the request.
-
-
-
Constructor Detail
-
ConnectHandler
public ConnectHandler(HttpHandler next)
-
ConnectHandler
public ConnectHandler(HttpHandler next, Predicate allowed)
-
-
Method Detail
-
handleRequest
public void handleRequest(HttpServerExchange exchange) throws Exception
Description copied from interface:HttpHandler
Handle the request.- Specified by:
handleRequest
in interfaceHttpHandler
- Parameters:
exchange
- the HTTP request/response exchange- Throws:
Exception
-
-