Class ForwardLogoutSuccessHandler
java.lang.Object
org.springframework.security.web.authentication.logout.ForwardLogoutSuccessHandler
- All Implemented Interfaces:
LogoutSuccessHandler
LogoutSuccessHandler implementation that will perform a request dispatcher
"forward" to the specified target URL.- Since:
- 5.0
-
Constructor Summary
ConstructorsConstructorDescriptionForwardLogoutSuccessHandler(String targetUrl) Construct a newForwardLogoutSuccessHandlerwith the given target URL. -
Method Summary
Modifier and TypeMethodDescriptionvoidonLogoutSuccess(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Authentication authentication)
-
Constructor Details
-
ForwardLogoutSuccessHandler
Construct a newForwardLogoutSuccessHandlerwith the given target URL.- Parameters:
targetUrl- the target URL
-
-
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
-