org.apache.catalina.deploy

Class ErrorPage

Implemented Interfaces:
Serializable

public class ErrorPage
extends java.lang.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.4 $ $Date: 2004/05/13 20:40:49 $

Author:
Craig R. McClanahan

Method Summary

int
getErrorCode()
Return the error code.
String
getExceptionType()
Return the exception type.
String
getLocation()
Return the location.
void
setErrorCode(String errorCode)
Set the error code (hack for default XmlMapper data type).
void
setErrorCode(int errorCode)
Set the error code.
void
setExceptionType(String exceptionType)
Set the exception type.
void
setLocation(String location)
Set the location.
String
toString()
Render a String representation of this object.

Method Details

getErrorCode

public int getErrorCode()
Return the error code.


getExceptionType

public String getExceptionType()
Return the exception type.


getLocation

public String getLocation()
Return the location.


setErrorCode

public void setErrorCode(String errorCode)
Set the error code (hack for default XmlMapper data type).

Parameters:
errorCode - The new error code


setErrorCode

public void setErrorCode(int errorCode)
Set the error code.

Parameters:
errorCode - The new error code


setExceptionType

public void setExceptionType(String exceptionType)
Set the exception type.

Parameters:
exceptionType - The new exception type


setLocation

public void setLocation(String location)
Set the location.

Parameters:
location - The new location


toString

public String toString()
Render a String representation of this object.


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.