Class ErrorPage
- java.lang.Object
- 
- org.apache.tomcat.util.descriptor.web.XmlEncodingBase
- 
- org.apache.tomcat.util.descriptor.web.ErrorPage
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public class ErrorPage extends XmlEncodingBase implements java.io.Serializable Representation of an error page element for a web application, as represented in a<error-page>element in the deployment descriptor.- Author:
- Craig R. McClanahan
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description ErrorPage()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetErrorCode()java.lang.StringgetExceptionType()java.lang.StringgetLocation()java.lang.StringgetName()voidsetErrorCode(int errorCode)Set the error code.voidsetErrorCode(java.lang.String errorCode)Set the error code (hack for default XmlMapper data type).voidsetExceptionType(java.lang.String exceptionType)Set the exception type.voidsetLocation(java.lang.String location)Set the location.java.lang.StringtoString()Render a String representation of this object.- 
Methods inherited from class org.apache.tomcat.util.descriptor.web.XmlEncodingBasegetCharset, setCharset
 
- 
 
- 
- 
- 
Method Detail- 
getErrorCodepublic int getErrorCode() - Returns:
- the error code.
 
 - 
setErrorCodepublic void setErrorCode(int errorCode) Set the error code.- Parameters:
- errorCode- The new error code
 
 - 
setErrorCodepublic void setErrorCode(java.lang.String errorCode) Set the error code (hack for default XmlMapper data type).- Parameters:
- errorCode- The new error code
 
 - 
getExceptionTypepublic java.lang.String getExceptionType() - Returns:
- the exception type.
 
 - 
setExceptionTypepublic void setExceptionType(java.lang.String exceptionType) Set the exception type.- Parameters:
- exceptionType- The new exception type
 
 - 
getLocationpublic java.lang.String getLocation() - Returns:
- the location.
 
 - 
setLocationpublic void setLocation(java.lang.String location) Set the location.- Parameters:
- location- The new location
 
 - 
toStringpublic java.lang.String toString() Render a String representation of this object.- Overrides:
- toStringin class- java.lang.Object
 
 - 
getNamepublic java.lang.String getName() 
 
- 
 
-