|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.shrinkwrap.descriptor.impl.webcommon30.ErrorPageTypeImpl<T>
public class ErrorPageTypeImpl<T>
This class implements the error-pageType
xsd type
Original Documentation:
The error-pageType contains a mapping between an error code
or exception type to the path of a resource in the web
application.
Error-page declarations using the exception-type element in
the deployment descriptor must be unique up to the class name of
the exception-type. Similarly, error-page declarations using the
status-code element must be unique in the deployment descriptor
up to the status code.
Used in: web-app
Constructor Summary | |
---|---|
ErrorPageTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node)
|
|
ErrorPageTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node,
org.jboss.shrinkwrap.descriptor.spi.Node childNode)
|
Method Summary | |
---|---|
java.lang.Integer |
getErrorCode()
Returns the error-code element |
java.lang.String |
getExceptionType()
Returns the exception-type element |
java.lang.String |
getLocation()
Returns the location element |
ErrorPageType<T> |
removeErrorCode()
Removes the error-code element |
ErrorPageType<T> |
removeExceptionType()
Removes the exception-type element |
ErrorPageType<T> |
removeLocation()
Removes the location element |
ErrorPageType<T> |
setErrorCode(java.lang.Integer errorCode)
If not already created, a new error-code element with the given value will be created. |
ErrorPageType<T> |
setExceptionType(java.lang.String exceptionType)
If not already created, a new exception-type element with the given value will be created. |
ErrorPageType<T> |
setLocation(java.lang.String location)
If not already created, a new location element with the given value will be created. |
T |
up()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ErrorPageTypeImpl(T t, java.lang.String nodeName, org.jboss.shrinkwrap.descriptor.spi.Node node)
public ErrorPageTypeImpl(T t, java.lang.String nodeName, org.jboss.shrinkwrap.descriptor.spi.Node node, org.jboss.shrinkwrap.descriptor.spi.Node childNode)
Method Detail |
---|
public T up()
up
in interface org.jboss.shrinkwrap.descriptor.api.Child<T>
public ErrorPageType<T> setLocation(java.lang.String location)
location
element with the given value will be created.
Otherwise, the existing location
element will be updated with the given value.
setLocation
in interface ErrorPageType<T>
ErrorPageType
public ErrorPageType<T> removeLocation()
location
element
removeLocation
in interface ErrorPageType<T>
ErrorPageType
public java.lang.String getLocation()
location
element
getLocation
in interface ErrorPageType<T>
location
public ErrorPageType<T> setErrorCode(java.lang.Integer errorCode)
error-code
element with the given value will be created.
Otherwise, the existing error-code
element will be updated with the given value.
setErrorCode
in interface ErrorPageType<T>
ErrorPageType
public ErrorPageType<T> removeErrorCode()
error-code
element
removeErrorCode
in interface ErrorPageType<T>
ErrorPageType
public java.lang.Integer getErrorCode()
error-code
element
getErrorCode
in interface ErrorPageType<T>
error-code
public ErrorPageType<T> setExceptionType(java.lang.String exceptionType)
exception-type
element with the given value will be created.
Otherwise, the existing exception-type
element will be updated with the given value.
setExceptionType
in interface ErrorPageType<T>
ErrorPageType
public ErrorPageType<T> removeExceptionType()
exception-type
element
removeExceptionType
in interface ErrorPageType<T>
ErrorPageType
public java.lang.String getExceptionType()
exception-type
element
getExceptionType
in interface ErrorPageType<T>
exception-type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |