|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.acegisecurity.ui.logout.LogoutFilter
public class LogoutFilter
Logs a principal out.
Polls a series of LogoutHandlers. The handlers should be specified in the order
they are required. Generally you will want to call logout handlers TokenBasedRememberMeServices and
SecurityContextLogoutHandler (in that order).
After logout, the URL specified by logoutSuccessUrl will be shown.
Do not use this class directly. Instead configure web.xml to use the FilterToBeanProxy.
| Constructor Summary | |
|---|---|
LogoutFilter(String logoutSuccessUrl,
LogoutHandler[] handlers)
|
|
| Method Summary | |
|---|---|
void |
destroy()
Not used. |
void |
doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
|
void |
init(FilterConfig arg0)
Not used. |
protected boolean |
requiresLogout(HttpServletRequest request,
HttpServletResponse response)
Allow subclasses to modify when a logout should tak eplace. |
protected void |
sendRedirect(HttpServletRequest request,
HttpServletResponse response,
String url)
Allow subclasses to modify the redirection message. |
void |
setFilterProcessesUrl(String filterProcessesUrl)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogoutFilter(String logoutSuccessUrl,
LogoutHandler[] handlers)
| Method Detail |
|---|
public void destroy()
destroy in interface Filter
public void doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
throws IOException,
ServletException
doFilter in interface FilterIOException
ServletException
public void init(FilterConfig arg0)
throws ServletException
init in interface Filterarg0 - ignored
ServletException - ignored
protected boolean requiresLogout(HttpServletRequest request,
HttpServletResponse response)
request - the requestresponse - the response
true if logout should occur, false otherwise
protected void sendRedirect(HttpServletRequest request,
HttpServletResponse response,
String url)
throws IOException
request - the requestresponse - the responseurl - the URL to redirect to
IOException - in the event of any failurepublic void setFilterProcessesUrl(String filterProcessesUrl)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||