ErrorHandler that can re-handle a request at an error page location.
| Modifier and Type | Class and Description |
|---|---|
| public static class | ReHandlingErrorHandler.
An |
| Modifier and Type | Field and Description |
|---|---|
| private final Handler | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected void | generateResponse(Request request, Response response, int code, String message, Throwable cause, Callback callback)
Overrides org.
|
| public Invocable. | |
| protected abstract String |
| _handler | back to summary |
|---|---|
| private final Handler _handler | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| ReHandlingErrorHandler | back to summary |
|---|---|
| protected ReHandlingErrorHandler(Handler handler) | |
| generateResponse | back to summary |
|---|---|
| protected void generateResponse(Request request, Response response, int code, String message, Throwable cause, Callback callback) throws IOException Overrides org.
| |
| getInvocationType | back to summary |
|---|---|
| public Invocable. Overrides default org.
| |
| getReHandlePathInContext | back to summary |
|---|---|
| protected abstract String getReHandlePathInContext(Request request, int code, Throwable cause) | |
ReHandlingErrorHandler that uses a map of error codes to select a page.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| protected String | getReHandlePathInContext(Request request, int code, Throwable cause)
Implements abstract org.
|
| public String | |
| public String |
| _statusMap | back to summary |
|---|---|
| private final Map<Integer, String> _statusMap | |
| ByHttpStatus | back to summary |
|---|---|
| public ByHttpStatus(Handler handler) | |
| get | back to summary |
|---|---|
| public String get(int code) | |
| getReHandlePathInContext | back to summary |
|---|---|
| protected String getReHandlePathInContext(Request request, int code, Throwable cause) Implements abstract org.
| |
| put | back to summary |
|---|---|
| public String put(int code, String pathInContext) | |
| remove | back to summary |
|---|---|
| public String remove(int code) | |