Warning
Do not enable this without some kind of authentication / IP based restriction scheme in place, as this will allow malicious actors to use your server as an open relay.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Predicate | |
| private final HttpHandler |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | handleRequest(final HttpServerExchange
the HTTP request/response exchange exchange)Implements io. Handle the request. |
| allowed | back to summary |
|---|---|
| private final Predicate allowed | |
| next | back to summary |
|---|---|
| private final HttpHandler next | |
| ConnectHandler | back to summary |
|---|---|
| public ConnectHandler(HttpHandler next) | |
| ConnectHandler | back to summary |
|---|---|
| public ConnectHandler(HttpHandler next, Predicate allowed) | |
| handleRequest | back to summary |
|---|---|
| public void handleRequest(final HttpServerExchange exchange) throws Exception Implements io. Doc from io. Handle the request.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | handleException(Channel
the channel channel, IOException the exception exception)Implements org. Handle an exception on the channel. |
| toClose | back to summary |
|---|---|
| private final Closeable[] toClose | |
| ClosingExceptionHandler | back to summary |
|---|---|
| private ClosingExceptionHandler(Closeable... toClose) | |
| handleException | back to summary |
|---|---|
| public void handleException(Channel channel, IOException exception) Implements org. Doc from org. Handle an exception on the channel.
| |