Customizer that extracts the real local and remote address:port pairs from a ProxyConnectionFactory
and sets them on the request with Request#setAttribute(String, Object).
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | LOCAL_ADDRESS_ATTRIBUTE_NAME
The local address attribute name. |
| public static final String | LOCAL_PORT_ATTRIBUTE_NAME
The local port attribute name. |
| public static final String | REMOTE_ADDRESS_ATTRIBUTE_NAME
The remote address attribute name. |
| public static final String | REMOTE_PORT_ATTRIBUTE_NAME
The remote port attribute name. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Request | customize(Request request, HttpFields.
Implements org.
|
| LOCAL_ADDRESS_ATTRIBUTE_NAME | back to summary |
|---|---|
| public static final String LOCAL_ADDRESS_ATTRIBUTE_NAME The local address attribute name. | |
| LOCAL_PORT_ATTRIBUTE_NAME | back to summary |
|---|---|
| public static final String LOCAL_PORT_ATTRIBUTE_NAME The local port attribute name. | |
| REMOTE_ADDRESS_ATTRIBUTE_NAME | back to summary |
|---|---|
| public static final String REMOTE_ADDRESS_ATTRIBUTE_NAME The remote address attribute name. | |
| REMOTE_PORT_ATTRIBUTE_NAME | back to summary |
|---|---|
| public static final String REMOTE_PORT_ATTRIBUTE_NAME The remote port attribute name. | |
| ProxyCustomizer | back to summary |
|---|---|
| public ProxyCustomizer() | |
| customize | back to summary |
|---|---|
| public Request customize(Request request, HttpFields. Implements org.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final int | |
| private final String | |
| private final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Object | getAttribute(String
the attribute to get name)Overrides org. Implements org. Get an attribute |
| public Set | getAttributeNameSet()
Overrides org. Implements org. Get the immutable set of attribute names. |
| _localAddress | back to summary |
|---|---|
| private final String _localAddress | |
| _localPort | back to summary |
|---|---|
| private final int _localPort | |
| _remoteAddress | back to summary |
|---|---|
| private final String _remoteAddress | |
| _remotePort | back to summary |
|---|---|
| private final int _remotePort | |
| ProxyRequest | back to summary |
|---|---|
| private ProxyRequest(Request request, SocketAddress local, SocketAddress remote) | |
| getAttribute | back to summary |
|---|---|
| public Object getAttribute(String name) Overrides org. Implements org. Doc from org. Get an attribute | |
| getAttributeNameSet | back to summary |
|---|---|
| public Set Overrides org. Implements org. Doc from org. Get the immutable set of attribute names. | |