Package org.apache.catalina.deploy
Class ErrorPage
- java.lang.Object
-
- org.apache.catalina.deploy.ErrorPage
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ErrorPageDecorator
public class ErrorPage extends Object implements Serializable
Representation of an error page element for a web application, as represented in a<error-page>element in the deployment descriptor.- Version:
- $Revision: 1.3 $ $Date: 2005/12/08 01:27:40 $
- Author:
- Craig R. McClanahan
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ErrorPage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetErrorCode()Return the error code.StringgetExceptionType()Return the exception type.StringgetLocation()Return the location.StringgetReason()Gets the reason string that is associated with the error (status) code for which this error page is active.voidsetErrorCode(int errorCode)Set the error code.voidsetErrorCode(String errorCode)Set the error code (hack for default XmlMapper data type).voidsetExceptionType(String exceptionType)Set the exception type.voidsetLocation(String location)Set the location.voidsetReason(String reason)Sets the reason string to be associated with the error (status) code for which this error page is active.StringtoString()Render a String representation of this object.
-
-
-
Method Detail
-
getErrorCode
public int getErrorCode()
Return the error code.
-
setErrorCode
public void setErrorCode(int errorCode)
Set the error code.- Parameters:
errorCode- The new error code
-
setErrorCode
public void setErrorCode(String errorCode)
Set the error code (hack for default XmlMapper data type).- Parameters:
errorCode- The new error code
-
getExceptionType
public String getExceptionType()
Return the exception type.
-
setExceptionType
public void setExceptionType(String exceptionType)
Set the exception type.- Parameters:
exceptionType- The new exception type
-
getLocation
public String getLocation()
Return the location.
-
setLocation
public void setLocation(String location)
Set the location.- Parameters:
location- The new location
-
getReason
public String getReason()
Gets the reason string that is associated with the error (status) code for which this error page is active.- Returns:
- The reason string of this error page
-
setReason
public void setReason(String reason)
Sets the reason string to be associated with the error (status) code for which this error page is active.- Parameters:
reason- The reason string
-
-