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
ConstructorDescriptionForwardLogoutSuccessHandler
(String targetUrl) Construct a newForwardLogoutSuccessHandler
with the given target URL. -
Method Summary
Modifier and TypeMethodDescriptionvoid
onLogoutSuccess
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Authentication authentication)
-
Constructor Details
-
ForwardLogoutSuccessHandler
Construct a newForwardLogoutSuccessHandler
with 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:
onLogoutSuccess
in interfaceLogoutSuccessHandler
- Throws:
IOException
jakarta.servlet.ServletException
-