Top Description Fields Constructors Methods
org.apache.catalina.util

public Class ErrorPageSupport

extends Object
Class Inheritance
Imports
java.util.HashSet, .Map, .Set, java.util.concurrent.ConcurrentHashMap, org.apache.tomcat.util.descriptor.web.ErrorPage

Provides support for tracking per exception type and per HTTP status code error pages.

Field Summary

Modifier and TypeField and Description
private Map<String, ErrorPage>
private Map<Integer, ErrorPage>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
add(ErrorPage errorPage)

public ErrorPage
find(int statusCode)

public ErrorPage

Returns:

The ErrorPage for the named exception type, or null if none is configured
find
(String
The fully qualified class name of the exception type
exceptionType
)

Find the ErrorPage, if any, for the named exception type.

public ErrorPage
find(Throwable exceptionType)

public ErrorPage[]
public void
remove(ErrorPage errorPage)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

exceptionPagesback to summary
private Map<String, ErrorPage> exceptionPages
statusPagesback to summary
private Map<Integer, ErrorPage> statusPages

Constructor Detail

ErrorPageSupportback to summary
public ErrorPageSupport()

Method Detail

addback to summary
public void add(ErrorPage errorPage)
findback to summary
public ErrorPage find(int statusCode)
findback to summary
public ErrorPage find(String exceptionType)

Find the ErrorPage, if any, for the named exception type.

Parameters
exceptionType:String

The fully qualified class name of the exception type

Returns:ErrorPage

The ErrorPage for the named exception type, or null if none is configured

findback to summary
public ErrorPage find(Throwable exceptionType)
findAllback to summary
public ErrorPage[] findAll()
removeback to summary
public void remove(ErrorPage errorPage)