|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ErrorPageType<T>
This interface defines the contract for 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
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. |
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child |
---|
up |
Method Detail |
---|
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.
ErrorPageType
ErrorPageType<T> removeLocation()
location
element
ErrorPageType
java.lang.String getLocation()
location
element
location
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.
ErrorPageType
ErrorPageType<T> removeErrorCode()
error-code
element
ErrorPageType
java.lang.Integer getErrorCode()
error-code
element
error-code
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.
ErrorPageType
ErrorPageType<T> removeExceptionType()
exception-type
element
ErrorPageType
java.lang.String getExceptionType()
exception-type
element
exception-type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |