public abstract class AbstractJohnsonFilter extends Object implements javax.servlet.Filter
| Modifier and Type | Field and Description |
|---|---|
protected JohnsonConfig |
config |
protected javax.servlet.FilterConfig |
filterConfig |
protected static String |
TEXT_XML_UTF8_CONTENT_TYPE |
| Constructor and Description |
|---|
AbstractJohnsonFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain filterChain)
This filter checks to see if there are any application consistency errors before any pages are accessed.
|
protected JohnsonEventContainer |
getContainerAndRunEventChecks(javax.servlet.http.HttpServletRequest req) |
protected static String |
getServletPath(javax.servlet.http.HttpServletRequest request)
Retrieves the current request servlet path.
|
protected String |
getStringForEvents(Collection<Event> events) |
protected abstract 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 abstract 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.
|
protected boolean |
ignoreURI(String uri) |
void |
init(javax.servlet.FilterConfig filterConfig) |
protected static final String TEXT_XML_UTF8_CONTENT_TYPE
protected javax.servlet.FilterConfig filterConfig
protected JohnsonConfig config
public void doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain filterChain)
throws IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.FilterIOExceptionjavax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.Filterpublic void init(javax.servlet.FilterConfig filterConfig)
init in interface javax.servlet.Filterprotected JohnsonEventContainer getContainerAndRunEventChecks(javax.servlet.http.HttpServletRequest req)
protected static String getServletPath(javax.servlet.http.HttpServletRequest request)
Taken from the Webwork RequestUtils class
request - the requestprotected String getStringForEvents(Collection<Event> events)
protected abstract void handleError(JohnsonEventContainer appEventContainer, javax.servlet.http.HttpServletRequest servletRequest, javax.servlet.http.HttpServletResponse servletResponse) throws IOException
Event which
stops normal application functioning.appEventContainer - the JohnsonEventContainer that contains the events.servletRequest - the request being directed to the error.servletResponse - the response.IOException - when the error cannot be handled.protected abstract void handleNotSetup(javax.servlet.http.HttpServletRequest servletRequest,
javax.servlet.http.HttpServletResponse servletResponse)
throws IOException
servletRequest - the request being directed to the error.servletResponse - the response.IOException - when the error cannot be handled.protected boolean ignoreURI(String uri)
Copyright © 2017 Atlassian. All rights reserved.