| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final Map | |
| private boolean | |
| public static final String | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addErrorPage(Class<? extends Throwable>
The exception exception, String The URI of the error page. uri)Adds ErrorPage mapping for an exception class. |
| public void | addErrorPage(String
The exception exceptionClassName, String The URI of the error page. uri)Adds ErrorPage mapping for an exception class. |
| public void | addErrorPage(int
The HTTP status code to match code, String The URI of the error page. uri)Adds ErrorPage mapping for a status code. |
| public void | addErrorPage(int
The lowest matching status code from, int The highest matching status code to, String The URI of the error page. uri)Adds ErrorPage mapping for a status code range. |
| public String | |
| public Map | |
| public boolean | Returns: True if ServletException is unwrapped forDispatcher#ERROR_EXCEPTION
|
| public void | setErrorPages(Map<String, String>
a map of Exception class names or error codes as a string to URI string errorPages)Set a map of Exception class names or error codes as a string to URI string. |
| public void | setUnwrapServletException(boolean
True if ServletException should be unwrapped for unwrapServletException)Dispatcher#ERROR_EXCEPTION
|
| private Throwable | Returns: the first nonServletException from root cause chainthe initial exception t, Class<?> the class we found matching the error page (can be null) matchedThrowable)
|
| _errorPageList | back to summary |
|---|---|
| private final List<ErrorPageErrorHandler. | |
| _errorPages | back to summary |
|---|---|
| private final Map<String, String> _errorPages | |
| _unwrapServletException | back to summary |
|---|---|
| private boolean _unwrapServletException | |
| GLOBAL_ERROR_PAGE | back to summary |
|---|---|
| public static final String GLOBAL_ERROR_PAGE | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| ErrorPageErrorHandler | back to summary |
|---|---|
| public ErrorPageErrorHandler() | |
| addErrorPage | back to summary |
|---|---|
| public void addErrorPage(Class<? extends Throwable> exception, String uri) Adds ErrorPage mapping for an exception class. This method is called as a result of an exception-type element in a web.xml file or may be called directly | |
| addErrorPage | back to summary |
|---|---|
| public void addErrorPage(String exceptionClassName, String uri) Adds ErrorPage mapping for an exception class. This method is called as a result of an exception-type element in a web.xml file or may be called directly | |
| addErrorPage | back to summary |
|---|---|
| public void addErrorPage(int code, String uri) Adds ErrorPage mapping for a status code. This method is called as a result of an error-code element in a web.xml file or may be called directly.
| |
| addErrorPage | back to summary |
|---|---|
| public void addErrorPage(int from, int to, String uri) Adds ErrorPage mapping for a status code range. This method is not available from web.xml and must be called directly.
| |
| getErrorPage | back to summary |
|---|---|
| public String getErrorPage(HttpServletRequest request) Implements org.
| |
| getErrorPages | back to summary |
|---|---|
| public Map | |
| isUnwrapServletException | back to summary |
|---|---|
public boolean isUnwrapServletException()
| |
| setErrorPages | back to summary |
|---|---|
| public void setErrorPages(Map<String, String> errorPages) Set a map of Exception class names or error codes as a string to URI string. | |
| setUnwrapServletException | back to summary |
|---|---|
public void setUnwrapServletException(boolean unwrapServletException)
| |
| unwrapServletException | back to summary |
|---|---|
private Throwable unwrapServletException(Throwable t, Class<?> matchedThrowable)
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final int | |
| private final String |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv String | |
| pack-priv boolean | |
| public String |
| _from | back to summary |
|---|---|
| private final int _from | |
| _to | back to summary |
|---|---|
| private final int _to | |
| _uri | back to summary |
|---|---|
| private final String _uri | |
| ErrorCodeRange | back to summary |
|---|---|
| pack-priv ErrorCodeRange(int from, int to, String uri) throws IllegalArgumentException | |
| getUri | back to summary |
|---|---|
| pack-priv String getUri() | |
| isInRange | back to summary |
|---|---|
| pack-priv boolean isInRange(int value) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final ErrorPageErrorHandler. | |
| public static final ErrorPageErrorHandler. | |
| public static final ErrorPageErrorHandler. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ErrorPageErrorHandler. | |
| public static ErrorPageErrorHandler. |
| GLOBAL | back to summary |
|---|---|
| public static final ErrorPageErrorHandler. | |
| STATUS_CODE | back to summary |
|---|---|
| public static final ErrorPageErrorHandler. | |
| THROWABLE | back to summary |
|---|---|
| public static final ErrorPageErrorHandler. | |
| PageLookupTechnique | back to summary |
|---|---|
| private PageLookupTechnique() | |
| valueOf | back to summary |
|---|---|
| public static ErrorPageErrorHandler. | |
| values | back to summary |
|---|---|
| public static ErrorPageErrorHandler. | |