public class ProxyPeerAddress extends Object
Modifier and Type | Method and Description |
---|---|
String |
getHost()
The X-Forwarded-Host (XFH) header is a de-facto standard header for identifying the original
host requested by the client in the Host HTTP request header.
|
int |
getPort()
Port from
getHost() . |
String |
getRemoteAddress()
The X-Forwarded-For (XFF) header is a de-facto standard header for identifying the originating
IP address of a client connecting to a web server through an HTTP proxy or a load balancer.
|
String |
getScheme()
The X-Forwarded-Proto (XFP) header is a de-facto standard header for identifying the protocol
(HTTP or HTTPS) that a client used to connect to your proxy or load balancer.
|
static ProxyPeerAddress |
parse(Context ctx) |
void |
set(Context ctx) |
public String getRemoteAddress()
public String getScheme()
public String getHost()
public void set(Context ctx)
public static ProxyPeerAddress parse(Context ctx)
Copyright © 2020. All rights reserved.