org.ops4j.pax.web.extender.whiteboard.runtime
Class DefaultErrorPageMapping

java.lang.Object
  extended by org.ops4j.pax.web.extender.whiteboard.runtime.DefaultErrorPageMapping
All Implemented Interfaces:
ErrorPageMapping

public class DefaultErrorPageMapping
extends java.lang.Object
implements ErrorPageMapping

Default implementation of ErrorPageMapping


Constructor Summary
DefaultErrorPageMapping()
           
 
Method Summary
 java.lang.String getError()
          Getter
 java.lang.String getHttpContextId()
          Getter.
 java.lang.String getLocation()
          Getter
 void setError(java.lang.String error)
          Setter
 void setHttpContextId(java.lang.String httpContextId)
          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

DefaultErrorPageMapping

public DefaultErrorPageMapping()
Method Detail

getHttpContextId

public java.lang.String getHttpContextId()
Description copied from interface: ErrorPageMapping
Getter.

Specified by:
getHttpContextId in interface ErrorPageMapping
Returns:
id of the http context this filter belongs to
See Also:
ErrorPageMapping.getHttpContextId()

getError

public java.lang.String getError()
Description copied from interface: ErrorPageMapping
Getter

Specified by:
getError in interface ErrorPageMapping
Returns:
error code or an FQN of the exception
See Also:
ErrorPageMapping.getError()

getLocation

public java.lang.String getLocation()
Description copied from interface: ErrorPageMapping
Getter

Specified by:
getLocation in interface ErrorPageMapping
Returns:
the request path that will fill the response page. The location must start with an "/"
See Also:
ErrorPageMapping.getLocation()

setHttpContextId

public void setHttpContextId(java.lang.String httpContextId)
Setter.

Parameters:
httpContextId - id of the http context this error page belongs to

setError

public void setError(java.lang.String error)
Setter

Parameters:
error - code or FQN of Exception class

setLocation

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

Parameters:
location - location of error page

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.