org.ops4j.pax.web.extender.war.internal.model
Class WebAppErrorPage

java.lang.Object
  extended by org.ops4j.pax.web.extender.war.internal.model.WebAppErrorPage

public class WebAppErrorPage
extends java.lang.Object

Models an error page element in web.xml.

Since:
0.3.0, January 12, 2007
Author:
Alin Dreghiciu

Constructor Summary
WebAppErrorPage()
           
 
Method Summary
 java.lang.String getError()
          Returns the exception type or error code dependeing on which one is set.
 java.lang.String getErrorCode()
          Getter.
 java.lang.String getExceptionType()
          Getter.
 java.lang.String getLocation()
          Getter.
 void setErrorCode(java.lang.String errorCode)
          Setter.
 void setExceptionType(java.lang.String exceptionType)
          Setter.
 void setLocation(java.lang.String location)
          Setter.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WebAppErrorPage

public WebAppErrorPage()
Method Detail

getErrorCode

public java.lang.String getErrorCode()
Getter.

Returns:
error code

setErrorCode

public void setErrorCode(java.lang.String errorCode)
Setter.

Parameters:
errorCode - value to set

getExceptionType

public java.lang.String getExceptionType()
Getter.

Returns:
exception type

setExceptionType

public void setExceptionType(java.lang.String exceptionType)
Setter.

Parameters:
exceptionType - value to set

getLocation

public java.lang.String getLocation()
Getter.

Returns:
location

setLocation

public void setLocation(java.lang.String location)
Setter.

Parameters:
location - value to set. Cannot be null.
Throws:
org.ops4j.lang.NullArgumentException - if location is null or empty

getError

public java.lang.String getError()
Returns the exception type or error code dependeing on which one is set. Exception type has priority.

Returns:
error

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2006-2011 OPS4J - Open Participation Software for Java. All Rights Reserved.