com.atlassian.johnson.filters
Class JohnsonFilter
java.lang.Object
com.atlassian.johnson.filters.AbstractJohnsonFilter
com.atlassian.johnson.filters.JohnsonFilter
- All Implemented Interfaces:
- javax.servlet.Filter
public class JohnsonFilter
- extends AbstractJohnsonFilter
A filter that handles cases where the application is unable to handle a normal request and redirects to the
configured error path so that a nice error page can be provided.
|
Method Summary |
protected void |
handleError(JohnsonEventContainer appEventContainer,
javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse)
Handles the given request for error cases when there is a Johnson Event which
stops normal application functioning. |
protected void |
handleNotSetup(javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse)
Handles the given request for cases when the application is not yet setup which
stops normal application functioning. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
public static final org.apache.log4j.Category log
ALREADY_FILTERED
public static final java.lang.String ALREADY_FILTERED
URL_SETUP
public static final java.lang.String URL_SETUP
- See Also:
- Constant Field Values
JohnsonFilter
public JohnsonFilter()
handleError
protected void handleError(JohnsonEventContainer appEventContainer,
javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse)
throws java.io.IOException
- Description copied from class:
AbstractJohnsonFilter
- Handles the given request for error cases when there is a Johnson
Event which
stops normal application functioning.
- Specified by:
handleError in class AbstractJohnsonFilter
- Parameters:
appEventContainer - the JohnsonEventContainer that contains the events.servletRequest - the request being directed to the error.servletResponse - the response.
- Throws:
java.io.IOException - when the error cannot be handled.
handleNotSetup
protected void handleNotSetup(javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse)
throws java.io.IOException
- Description copied from class:
AbstractJohnsonFilter
- Handles the given request for cases when the application is not yet setup which
stops normal application functioning.
- Specified by:
handleNotSetup in class AbstractJohnsonFilter
- Parameters:
servletRequest - the request being directed to the error.servletResponse - the response.
- Throws:
java.io.IOException - when the error cannot be handled.
Copyright © 2012 Atlassian. All Rights Reserved.