Package io.undertow.server.handlers
Class ForwardedHandler
- java.lang.Object
-
- io.undertow.server.handlers.ForwardedHandler
-
- All Implemented Interfaces:
HttpHandler
public class ForwardedHandler extends Object implements HttpHandler
Handler that implements rfc7239 Forwarded header- Author:
- Stuart Douglas
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ForwardedHandler.Builder
-
Constructor Summary
Constructors Constructor Description ForwardedHandler(HttpHandler next)
ForwardedHandler(HttpHandler next, boolean isChangeLocalAddrPort)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleRequest(HttpServerExchange exchange)
Handle the request.String
toString()
-
-
-
Field Detail
-
BY
public static final String BY
- See Also:
- Constant Field Values
-
FOR
public static final String FOR
- See Also:
- Constant Field Values
-
HOST
public static final String HOST
- See Also:
- Constant Field Values
-
PROTO
public static final String PROTO
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ForwardedHandler
public ForwardedHandler(HttpHandler next)
-
ForwardedHandler
public ForwardedHandler(HttpHandler next, boolean isChangeLocalAddrPort)
-
-
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
-
-