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 int
getErrorCode()
Return the error code.String
getExceptionType()
Return the exception type.String
getLocation()
Return the location.String
getReason()
Gets the reason string that is associated with the error (status) code for which this error page is active.void
setErrorCode(int errorCode)
Set the error code.void
setErrorCode(String errorCode)
Set the error code (hack for default XmlMapper data type).void
setExceptionType(String exceptionType)
Set the exception type.void
setLocation(String location)
Set the location.void
setReason(String reason)
Sets the reason string to be associated with the error (status) code for which this error page is active.String
toString()
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
-
-