Class FormPostServerRedirectStrategy

java.lang.Object
org.springframework.security.web.server.FormPostServerRedirectStrategy
All Implemented Interfaces:
ServerRedirectStrategy

public final class FormPostServerRedirectStrategy extends Object implements ServerRedirectStrategy
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

    • FormPostServerRedirectStrategy

      public FormPostServerRedirectStrategy()
  • Method Details

    • sendRedirect

      public reactor.core.publisher.Mono<Void> sendRedirect(org.springframework.web.server.ServerWebExchange exchange, URI location)
      Description copied from interface: ServerRedirectStrategy
      Performs a redirect based upon the provided ServerWebExchange and URI
      Specified by:
      sendRedirect in interface ServerRedirectStrategy
      Parameters:
      exchange - the ServerWebExchange to use
      location - the location to redirect to
      Returns:
      Mono<Void> to indicate when redirect is complete