|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.deployment.ErrorPageDescriptor
public class ErrorPageDescriptor
Objects exhiniting this interface represent an error page and the exception type or error code that will cause the redirect from the web container.
| Constructor Summary | |
|---|---|
ErrorPageDescriptor()
The default constructor. |
|
ErrorPageDescriptor(int errorCode,
java.lang.String location)
Constructor for error code to error page mapping. |
|
ErrorPageDescriptor(java.lang.String exceptionType,
java.lang.String location)
Constructor for Java exception type to error page mapping. |
|
| Method Summary | |
|---|---|
int |
getErrorCode()
Return the error code. |
java.lang.String |
getErrorSignifierAsString()
If there is an exception type, then the exception type is returned. |
java.lang.String |
getExceptionType()
Return the exception type or the empty string if none. |
java.lang.String |
getLocation()
Return the page to map to |
void |
print(java.lang.StringBuffer toStringBuffer)
|
void |
setErrorCode(int errorCode)
Sets the error code. |
void |
setErrorSignifierAsString(java.lang.String errorSignifier)
Sets the error code if the argument is parsable as an int, or the exception type else. |
void |
setExceptionType(java.lang.String exceptionType)
Sets the exception type. |
void |
setLocation(java.lang.String location)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ErrorPageDescriptor()
public ErrorPageDescriptor(int errorCode,
java.lang.String location)
public ErrorPageDescriptor(java.lang.String exceptionType,
java.lang.String location)
| Method Detail |
|---|
public int getErrorCode()
public void setErrorCode(int errorCode)
public java.lang.String getErrorSignifierAsString()
public void setErrorSignifierAsString(java.lang.String errorSignifier)
public java.lang.String getExceptionType()
public void setExceptionType(java.lang.String exceptionType)
public java.lang.String getLocation()
public void setLocation(java.lang.String location)
public void print(java.lang.StringBuffer toStringBuffer)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||