public class ProxyPeerAddressHandler extends Object implements HttpHandler
This should only be used behind a proxy that always sets this header, otherwise it is possible for an attacker to forge their peer address;
Modifier and Type | Class and Description |
---|---|
static class |
ProxyPeerAddressHandler.Builder |
Constructor and Description |
---|
ProxyPeerAddressHandler(HttpHandler next) |
public ProxyPeerAddressHandler(HttpHandler next)
public void handleRequest(HttpServerExchange exchange) throws Exception
HttpHandler
handleRequest
in interface HttpHandler
exchange
- the HTTP request/response exchangeException
Copyright © 2015. All rights reserved.