Class ErrorPageSupport
java.lang.Object
org.apache.catalina.util.ErrorPageSupport
Provides support for tracking per exception type and per HTTP status code error pages.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an error page to the support.find(int statusCode) Finds the ErrorPage, if any, for the given HTTP status code.Find the ErrorPage, if any, for the named exception type.Find the ErrorPage, if any, for the given exception type, searching up the exception's class hierarchy.findAll()Returns all configured error pages.voidRemoves an error page from the support.
-
Constructor Details
-
ErrorPageSupport
public ErrorPageSupport()Default constructor for ErrorPageSupport.
-
-
Method Details
-
add
Adds an error page to the support.- Parameters:
errorPage- The error page to add
-
remove
Removes an error page from the support.- Parameters:
errorPage- The error page to remove
-
find
Finds the ErrorPage, if any, for the given HTTP status code.- Parameters:
statusCode- The HTTP status code- Returns:
- The ErrorPage for the status code, or
nullif none is configured
-
find
-
find
-
findAll
Returns all configured error pages.- Returns:
- Array of all configured error pages
-