Class ProxyPeerAddressHandler

  • All Implemented Interfaces:
    HttpHandler

    public class ProxyPeerAddressHandler
    extends Object
    implements HttpHandler
    Handler that sets the peer address to the value of the X-Forwarded-For header.

    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;

    Author:
    Stuart Douglas