| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| public static String | getErrorPage(String headerMessage, String message, String serverName)
Returns: A |
| public static String | |
| private static int | |
| private static Throwable | |
| private static String | prepareBody(String headerMessage, String message, String serverName)
Prepare the HTTP body containing the error messages. |
| private static String | |
| public static void | sendErrorPage(final Request request, final Response response, final ErrorPageGenerator generator, final int status, final String reasonPhrase, final String description, final Throwable exception)
Generate and send an error page for the given HTTP response status. |
| public static void | setErrorAndSendErrorPage(final Request request, final Response response, final ErrorPageGenerator generator, final int status, final String reasonPhrase, final String description, final Throwable exception)
Generate and send an error page for the given HTTP response status. |
| public static void |
| CSS | back to summary |
|---|---|
| private static final String CSS | |
| MAX_STACK_ELEMENTS | back to summary |
|---|---|
| private static final int MAX_STACK_ELEMENTS | |
| HtmlHelper | back to summary |
|---|---|
| public HtmlHelper() | |
| formatStackElements | back to summary |
|---|---|
| private static void formatStackElements(StackTraceElement[] elements, StringBuilder builder) | |
| getErrorPage | back to summary |
|---|---|
| public static String getErrorPage(String headerMessage, String message, String serverName) | |
| getExceptionErrorPage | back to summary |
|---|---|
| public static String getExceptionErrorPage(String headerMessage, String message, String serverName, Throwable t) | |
| getMaxStackElementsToDisplay | back to summary |
|---|---|
| private static int getMaxStackElementsToDisplay(StackTraceElement[] elements) | |
| getRootCause | back to summary |
|---|---|
| private static Throwable getRootCause(Throwable t) | |
| prepareBody | back to summary |
|---|---|
| private static String prepareBody(String headerMessage, String message, String serverName) Prepare the HTTP body containing the error messages. | |
| prepareExceptionBody | back to summary |
|---|---|
private static String prepareExceptionBody(String headerMessage, String message, String serverName, Throwable t)
| |
| sendErrorPage | back to summary |
|---|---|
| public static void sendErrorPage(final Request request, final Response response, final ErrorPageGenerator generator, final int status, final String reasonPhrase, final String description, final Throwable exception) throws IOException Generate and send an error page for the given HTTP response status. Unlike
| |
| setErrorAndSendErrorPage | back to summary |
|---|---|
| public static void setErrorAndSendErrorPage(final Request request, final Response response, final ErrorPageGenerator generator, final int status, final String reasonPhrase, final String description, final Throwable exception) throws IOException Generate and send an error page for the given HTTP response status. Unlike
| |
| writeTraceMessage | back to summary |
|---|---|
| public static void writeTraceMessage(final Request request, final Response response) throws IOException | |