public class ProxyCustomizer extends java.lang.Object implements HttpConfiguration.Customizer
Customizer that extracts the real local and remote address:port pairs from a ProxyConnectionFactory
and sets them on the request with ServletRequest.setAttribute(String, Object)
.
Modifier and Type | Class and Description |
---|---|
private static class |
ProxyCustomizer.ProxyAttributes |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LOCAL_ADDRESS_ATTRIBUTE_NAME
The local address attribute name.
|
static java.lang.String |
LOCAL_PORT_ATTRIBUTE_NAME
The local port attribute name.
|
static java.lang.String |
REMOTE_ADDRESS_ATTRIBUTE_NAME
The remote address attribute name.
|
static java.lang.String |
REMOTE_PORT_ATTRIBUTE_NAME
The remote port attribute name.
|
Constructor and Description |
---|
ProxyCustomizer() |
Modifier and Type | Method and Description |
---|---|
void |
customize(Connector connector,
HttpConfiguration channelConfig,
Request request) |
public static final java.lang.String REMOTE_ADDRESS_ATTRIBUTE_NAME
public static final java.lang.String REMOTE_PORT_ATTRIBUTE_NAME
public static final java.lang.String LOCAL_ADDRESS_ATTRIBUTE_NAME
public static final java.lang.String LOCAL_PORT_ATTRIBUTE_NAME
public void customize(Connector connector, HttpConfiguration channelConfig, Request request)
customize
in interface HttpConfiguration.Customizer