Package io.undertow.server.handlers
Class ConnectHandler
java.lang.Object
io.undertow.server.handlers.ConnectHandler
- All Implemented Interfaces:
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
ConstructorsConstructorDescriptionConnectHandler
(HttpHandler next) ConnectHandler
(HttpHandler next, Predicate allowed) -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleRequest
(HttpServerExchange exchange) Handle the request.
-
Constructor Details
-
ConnectHandler
-
ConnectHandler
-
-
Method Details
-
handleRequest
Description copied from interface:HttpHandler
Handle the request.- Specified by:
handleRequest
in interfaceHttpHandler
- Parameters:
exchange
- the HTTP request/response exchange- Throws:
Exception
-