Class StartupStatusDisplayFilter
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.filters.StartupStatusDisplayFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
@WebFilter(filterName="Startup Status Display Filter", urlPatterns="/*") public class StartupStatusDisplayFilter extends Object implements javax.servlet.FilterNo matter what URL is requested, check to see whether the StartupStatus contains errors or warnings. If it does, hijack the request to show the StartupStatus display page. If the status only contains warnings, this only happens once. Subsequent requests will display normally. However, if the status contains a fatal error, this filter will hijack every request, and will not let you proceed.
-
-
Constructor Summary
Constructors Constructor Description StartupStatusDisplayFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()voiddoFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse resp, javax.servlet.FilterChain chain)voidinit(javax.servlet.FilterConfig filterConfig)
-
-
-
Method Detail
-
init
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException- Specified by:
initin interfacejavax.servlet.Filter- Throws:
javax.servlet.ServletException
-
destroy
public void destroy()
- Specified by:
destroyin interfacejavax.servlet.Filter
-
doFilter
public void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse resp, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException- Specified by:
doFilterin interfacejavax.servlet.Filter- Throws:
IOExceptionjavax.servlet.ServletException
-
-