info.magnolia.cms.security
Class LogoutFilter

java.lang.Object
  extended by info.magnolia.cms.filters.AbstractMgnlFilter
      extended by info.magnolia.cms.filters.OncePerRequestAbstractMgnlFilter
          extended by 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.


Field Summary
static String PARAMETER_LOGOUT
           
 
Constructor Summary
LogoutFilter()
           
 
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.OncePerRequestAbstractMgnlFilter
bypasses, doFilter
 
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
 

Field Detail

PARAMETER_LOGOUT

public static final String PARAMETER_LOGOUT
See Also:
Constant Field Values
Constructor Detail

LogoutFilter

public LogoutFilter()
Method Detail

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-2011 Magnolia International Ltd.. All Rights Reserved.