Class FormPostServerRedirectStrategy
java.lang.Object
org.springframework.security.web.server.FormPostServerRedirectStrategy
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>sendRedirect(org.springframework.web.server.ServerWebExchange exchange, URI location) Performs a redirect based upon the providedServerWebExchangeandURI
-
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:ServerRedirectStrategyPerforms a redirect based upon the providedServerWebExchangeandURI- Specified by:
sendRedirectin interfaceServerRedirectStrategy- Parameters:
exchange- theServerWebExchangeto uselocation- the location to redirect to- Returns:
Mono<Void>to indicate when redirect is complete
-