Class FormPostRedirectStrategy

java.lang.Object
org.springframework.security.web.FormPostRedirectStrategy
All Implemented Interfaces:
RedirectStrategy

public final class FormPostRedirectStrategy extends Object implements RedirectStrategy
Redirect using an auto-submitting HTML form using the POST method. All query params provided in the URL are changed to inputs in the form so they are submitted as POST data instead of query string data.
Since:
6.5
  • Constructor Details

    • FormPostRedirectStrategy

      public FormPostRedirectStrategy()
  • Method Details

    • sendRedirect

      public void sendRedirect(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String url) throws IOException
      Description copied from interface: RedirectStrategy
      Performs a redirect to the supplied URL
      Specified by:
      sendRedirect in interface RedirectStrategy
      Parameters:
      request - the current request
      response - the response to redirect
      url - the target URL to redirect to, for example "/login"
      Throws:
      IOException