org.apache.wicket.protocol.http.servlet
Class ErrorAttributes

java.lang.Object
  extended by org.apache.wicket.protocol.http.servlet.ErrorAttributes

public class ErrorAttributes
extends java.lang.Object

Represents additional error parameters present in a ServletRequest when the servlet container is handling an error or a forward to an error page mapped by error-page element in web.xml. See documentation for the following request attributes for the values stored in this object:

Author:
igor

Method Summary
 java.lang.Throwable getException()
          Gets exception.
 java.lang.Class<? extends java.lang.Throwable> getExceptionType()
          Gets exceptionType.
 java.lang.String getMessage()
          Gets message.
 java.lang.String getRequestUri()
          Gets requestUri.
 java.lang.String getServletName()
          Gets servletName.
 java.lang.Integer getStatusCode()
          Gets statusCode.
static ErrorAttributes of(javax.servlet.http.HttpServletRequest request)
          Factory for creating instances of this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getStatusCode

public java.lang.Integer getStatusCode()
Gets statusCode.

Returns:
statusCode

getMessage

public java.lang.String getMessage()
Gets message.

Returns:
message

getRequestUri

public java.lang.String getRequestUri()
Gets requestUri.

Returns:
requestUri

getServletName

public java.lang.String getServletName()
Gets servletName.

Returns:
servletName

getExceptionType

public java.lang.Class<? extends java.lang.Throwable> getExceptionType()
Gets exceptionType.

Returns:
exceptionType

getException

public java.lang.Throwable getException()
Gets exception.

Returns:
exception

of

public static ErrorAttributes of(javax.servlet.http.HttpServletRequest request)
Factory for creating instances of this class.

Parameters:
request -
Returns:
instance of request contains error attributes or null if it does not.


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.