Class DelegatingLogoutSuccessHandler
java.lang.Object
org.springframework.security.web.authentication.logout.DelegatingLogoutSuccessHandler
- All Implemented Interfaces:
 LogoutSuccessHandler
Delegates to logout handlers based on matched request matchers
- Since:
 - 4.1
 
- 
Constructor Summary
ConstructorsConstructorDescriptionDelegatingLogoutSuccessHandler(LinkedHashMap<RequestMatcher, LogoutSuccessHandler> matcherToHandler)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidonLogoutSuccess(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Authentication authentication) voidsetDefaultLogoutSuccessHandler(LogoutSuccessHandler defaultLogoutSuccessHandler) Sets the defaultLogoutSuccessHandlerif no other handlers available 
- 
Constructor Details
- 
DelegatingLogoutSuccessHandler
public DelegatingLogoutSuccessHandler(LinkedHashMap<RequestMatcher, LogoutSuccessHandler> matcherToHandler)  
 - 
 - 
Method Details
- 
onLogoutSuccess
public void onLogoutSuccess(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Authentication authentication) throws IOException, jakarta.servlet.ServletException - Specified by:
 onLogoutSuccessin interfaceLogoutSuccessHandler- Throws:
 IOExceptionjakarta.servlet.ServletException
 - 
setDefaultLogoutSuccessHandler
Sets the defaultLogoutSuccessHandlerif no other handlers available- Parameters:
 defaultLogoutSuccessHandler- the defaultLogoutSuccessHandler to set
 
 -