org.ops4j.pax.web.extender.whiteboard
Interface ErrorPageMapping

All Known Implementing Classes:
DefaultErrorPageMapping

public interface ErrorPageMapping

Registers an error page to customize the response sent back to the web client in case that an exception or error propagates back to the web container, or the servlet/filter calls sendError() on the response object for a specific status code.

Since:
0.7.0 Jun 23, 2009
Author:
dsklyut

Method Summary
 java.lang.String getError()
          Getter
 java.lang.String getHttpContextId()
          Getter.
 java.lang.String getLocation()
          Getter
 

Method Detail

getHttpContextId

java.lang.String getHttpContextId()
Getter.

Returns:
id of the http context this filter belongs to

getError

java.lang.String getError()
Getter

Returns:
error code or an FQN of the exception

getLocation

java.lang.String getLocation()
Getter

Returns:
the request path that will fill the response page. The location must start with an "/"


Copyright © 2006-2011 OPS4J - Open Participation Software for Java. All Rights Reserved.