| Modifier and Type | Field and Description |
|---|---|
| private static final boolean | |
| public static final ResponseCodeHandler | HANDLE_200
A handler which sets a 200 code. |
| public static final ResponseCodeHandler | HANDLE_403
A handler which sets a 403 code. |
| public static final ResponseCodeHandler | HANDLE_404
A handler which sets a 404 code. |
| public static final ResponseCodeHandler | HANDLE_405
A handler which sets a 405 code. |
| public static final ResponseCodeHandler | HANDLE_406
A handler which sets a 406 code. |
| public static final ResponseCodeHandler | HANDLE_500
A handler which sets a 500 code. |
| private final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | handleRequest(final HttpServerExchange
the HTTP request/response exchange exchange)Implements io. Handle the request. |
| public String |
| debugEnabled | back to summary |
|---|---|
| private static final boolean debugEnabled | |
| HANDLE_200 | back to summary |
|---|---|
| public static final ResponseCodeHandler HANDLE_200 A handler which sets a 200 code. This is the default response code, so in most cases this simply has the result of finishing the request | |
| HANDLE_403 | back to summary |
|---|---|
| public static final ResponseCodeHandler HANDLE_403 A handler which sets a 403 code. | |
| HANDLE_404 | back to summary |
|---|---|
| public static final ResponseCodeHandler HANDLE_404 A handler which sets a 404 code. | |
| HANDLE_405 | back to summary |
|---|---|
| public static final ResponseCodeHandler HANDLE_405 A handler which sets a 405 code. | |
| HANDLE_406 | back to summary |
|---|---|
| public static final ResponseCodeHandler HANDLE_406 A handler which sets a 406 code. | |
| HANDLE_500 | back to summary |
|---|---|
| public static final ResponseCodeHandler HANDLE_500 A handler which sets a 500 code. | |
| responseCode | back to summary |
|---|---|
| private final int responseCode | |
| ResponseCodeHandler | back to summary |
|---|---|
| public ResponseCodeHandler(final int responseCode) Construct a new instance.
| |
| handleRequest | back to summary |
|---|---|
| public void handleRequest(final HttpServerExchange exchange) throws Exception Implements io. Doc from io. Handle the request.
| |
| 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- | |