Package io.undertow.server.handlers
Class ForwardedHandler
- java.lang.Object
-
- io.undertow.server.handlers.ForwardedHandler
-
- All Implemented Interfaces:
HttpHandler
public class ForwardedHandler extends java.lang.Object implements HttpHandler
Handler that implements rfc7239 Forwarded header- Author:
- Stuart Douglas
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classForwardedHandler.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 voidhandleRequest(HttpServerExchange exchange)Handle the request.java.lang.StringtoString()
-
-
-
Field Detail
-
BY
public static final java.lang.String BY
- See Also:
- Constant Field Values
-
FOR
public static final java.lang.String FOR
- See Also:
- Constant Field Values
-
HOST
public static final java.lang.String HOST
- See Also:
- Constant Field Values
-
PROTO
public static final java.lang.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 java.lang.Exception
Description copied from interface:HttpHandlerHandle the request.- Specified by:
handleRequestin interfaceHttpHandler- Parameters:
exchange- the HTTP request/response exchange- Throws:
java.lang.Exception
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-