org.apache.catalina.deploy

Class ErrorPage

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: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (Tue, 24 Oct 2006) $

Author: Craig R. McClanahan

Method Summary
intgetErrorCode()
Return the error code.
StringgetExceptionType()
Return the exception type.
StringgetLocation()
Return the location.
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.
StringtoString()
Render a String representation of this object.

Method Detail

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(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

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 © 2000-2011 Apache Software Foundation. All Rights Reserved.