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 |
|---|---|
| public static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final boolean | |
| private static final Pattern | |
| private static final Pattern | |
| private final boolean | |
| private final HttpHandler |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | handleRequest(HttpServerExchange
the HTTP request/response exchange exchange)Implements io. Handle the request. |
| private String | |
| private static boolean | |
| public String |
| CHANGE_LOCAL_ADDR_PORT | back to summary |
|---|---|
| private static final String CHANGE_LOCAL_ADDR_PORT | |
| DEFAULT_CHANGE_LOCAL_ADDR_PORT | back to summary |
|---|---|
| private static final boolean DEFAULT_CHANGE_LOCAL_ADDR_PORT | |
| IP4_EXACT | back to summary |
|---|---|
| private static final Pattern IP4_EXACT | |
| IP6_EXACT | back to summary |
|---|---|
| private static final Pattern IP6_EXACT | |
| isChangeLocalAddrPort | back to summary |
|---|---|
| private final boolean isChangeLocalAddrPort | |
| next | back to summary |
|---|---|
| private final HttpHandler next | |
| ProxyPeerAddressHandler | back to summary |
|---|---|
| public ProxyPeerAddressHandler(HttpHandler next) | |
| ProxyPeerAddressHandler | back to summary |
|---|---|
| public ProxyPeerAddressHandler(HttpHandler next, boolean isChangeLocalAddrPort) | |
| handleRequest | back to summary |
|---|---|
| public void handleRequest(HttpServerExchange exchange) throws Exception Implements io. Doc from io. Handle the request.
| |
| mostRecent | back to summary |
|---|---|
| private String mostRecent(String header) | |
| standardPort | back to summary |
|---|---|
| private static boolean standardPort(int port, String scheme) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public HandlerWrapper | build(Map<String, Object>
The handler config config)Implements io. Creates the handler |
| public String | |
| public String | name()
Implements io. The string representation of the handler name. |
| public Map | parameters()
Implements io. Returns a map of parameters and their types. |
| public Set |
| Builder | back to summary |
|---|---|
| public Builder() | |
| build | back to summary |
|---|---|
| public HandlerWrapper build(Map<String, Object> config) Implements io. Doc from io. Creates the handler
| |
| defaultParameter | back to summary |
|---|---|
| public String defaultParameter() Implements io.
| |
| name | back to summary |
|---|---|
| public String name() Implements io. Doc from io. The string representation of the handler name. | |
| parameters | back to summary |
|---|---|
| public Map Implements io. Doc from io. Returns a map of parameters and their types.
| |
| requiredParameters | back to summary |
|---|---|
| public Set Implements io.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public HttpHandler |
| isChangeLocalAddrPort | back to summary |
|---|---|
| private final boolean isChangeLocalAddrPort | |
| Wrapper | back to summary |
|---|---|
| private Wrapper(boolean isChangeLocalAddrPort) | |
| wrap | back to summary |
|---|---|
| public HttpHandler wrap(HttpHandler handler) Implements io.
| |