Class DelegatingLogoutSuccessHandler
- java.lang.Object
-
- org.springframework.security.web.authentication.logout.DelegatingLogoutSuccessHandler
-
- All Implemented Interfaces:
LogoutSuccessHandler
public class DelegatingLogoutSuccessHandler extends java.lang.Object implements LogoutSuccessHandler
Delegates to logout handlers based on matched request matchers- Since:
- 4.1
-
-
Constructor Summary
Constructors Constructor Description DelegatingLogoutSuccessHandler(java.util.LinkedHashMap<RequestMatcher,LogoutSuccessHandler> matcherToHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onLogoutSuccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Authentication authentication)
void
setDefaultLogoutSuccessHandler(LogoutSuccessHandler defaultLogoutSuccessHandler)
Sets the defaultLogoutSuccessHandler
if no other handlers available
-
-
-
Constructor Detail
-
DelegatingLogoutSuccessHandler
public DelegatingLogoutSuccessHandler(java.util.LinkedHashMap<RequestMatcher,LogoutSuccessHandler> matcherToHandler)
-
-
Method Detail
-
onLogoutSuccess
public void onLogoutSuccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Authentication authentication) throws java.io.IOException, javax.servlet.ServletException
- Specified by:
onLogoutSuccess
in interfaceLogoutSuccessHandler
- Throws:
java.io.IOException
javax.servlet.ServletException
-
setDefaultLogoutSuccessHandler
public void setDefaultLogoutSuccessHandler(LogoutSuccessHandler defaultLogoutSuccessHandler)
Sets the defaultLogoutSuccessHandler
if no other handlers available- Parameters:
defaultLogoutSuccessHandler
- the defaultLogoutSuccessHandler to set
-
-