Package | Description |
---|---|
org.apache.catalina | |
org.apache.catalina.core |
Modifier and Type | Method and Description |
---|---|
ErrorPage |
Context.findErrorPage(int errorCode)
Return the error page entry for the specified HTTP error code,
if any; otherwise return
null . |
ErrorPage |
Context.findErrorPage(String exceptionType)
Return the error page entry for the specified Java exception type,
if any; otherwise return
null . |
ErrorPage[] |
Context.findErrorPages()
Return the set of defined error pages for all specified error codes
and exception types.
|
Modifier and Type | Method and Description |
---|---|
void |
Context.addErrorPage(ErrorPage errorPage)
Add an error page for the specified error or Java exception.
|
void |
Context.removeErrorPage(ErrorPage errorPage)
Remove the error page for the specified error code or
Java language exception, if it exists; otherwise, no action is taken.
|
Modifier and Type | Field and Description |
---|---|
protected ErrorPage |
StandardContext.okErrorPage
Special case: error page for status 200.
|
Modifier and Type | Field and Description |
---|---|
protected HashMap<String,ErrorPage> |
StandardContext.exceptionPages
The exception pages for this web application, keyed by fully qualified
class name of the Java exception.
|
protected HashMap<Integer,ErrorPage> |
StandardContext.statusPages
The status code error pages for this web application, keyed by
HTTP status code (as an Integer).
|
Modifier and Type | Method and Description |
---|---|
ErrorPage |
StandardContext.findErrorPage(int errorCode)
Return the error page entry for the specified HTTP error code,
if any; otherwise return
null . |
ErrorPage |
StandardContext.findErrorPage(String exceptionType)
Return the error page entry for the specified Java exception type,
if any; otherwise return
null . |
ErrorPage[] |
StandardContext.findErrorPages()
Return the set of defined error pages for all specified error codes
and exception types.
|
Modifier and Type | Method and Description |
---|---|
void |
StandardContext.addErrorPage(ErrorPage errorPage)
Add an error page for the specified error or Java exception.
|
void |
StandardContext.removeErrorPage(ErrorPage errorPage)
Remove the error page for the specified error code or
Java language exception, if it exists; otherwise, no action is taken.
|
Copyright © 2014 JBoss by Red Hat. All rights reserved.