info.magnolia.cms.security
Class LogoutFilter
java.lang.Object
info.magnolia.cms.filters.AbstractMgnlFilter
info.magnolia.cms.filters.OncePerRequestAbstractMgnlFilter
info.magnolia.cms.security.LogoutFilter
- All Implemented Interfaces:
- MgnlFilter, javax.servlet.Filter
public class LogoutFilter
- extends OncePerRequestAbstractMgnlFilter
Performing the logout operation if the parameter "mgnlLogout" is present.
Method Summary |
void |
doFilter(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain)
Check if a request parameter PARAMETER_LOGOUT is set. |
void |
init(javax.servlet.FilterConfig filterConfig)
|
Methods inherited from class info.magnolia.cms.filters.AbstractMgnlFilter |
acceptsEncoding, acceptsGzipEncoding, addAndVerifyHeader, addBypass, addMapping, destroy, getBypasses, getDispatching, getMapping, getMappings, getName, headerContains, isEnabled, mapsTo, matches, matchesDispatching, setDispatching, setEnabled, setName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PARAMETER_LOGOUT
public static final String PARAMETER_LOGOUT
- See Also:
- Constant Field Values
LogoutFilter
public LogoutFilter()
init
public void init(javax.servlet.FilterConfig filterConfig)
throws javax.servlet.ServletException
- Specified by:
init
in interface javax.servlet.Filter
- Overrides:
init
in class AbstractMgnlFilter
- Throws:
javax.servlet.ServletException
doFilter
public void doFilter(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
- Check if a request parameter PARAMETER_LOGOUT is set. If so logout user,
unset the context and restart the filter chain.
- Specified by:
doFilter
in class AbstractMgnlFilter
- Throws:
IOException
javax.servlet.ServletException
Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.