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) |
Modifier and Type | Method and Description |
---|---|
void | handleRequest(HttpServerExchange exchange) Handle the request. |
public ProxyPeerAddressHandler(HttpHandler next)
public void handleRequest(HttpServerExchange exchange) throws Exception
HttpHandler
handleRequest
in interface HttpHandler
exchange
- the HTTP request/response exchangeException
Copyright © 2015 JBoss by Red Hat. All rights reserved.