Interface ServerRedirectStrategy
- All Known Implementing Classes:
DefaultServerRedirectStrategy
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A strategy for performing redirects.
- Since:
- 5.0
-
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>
sendRedirect
(org.springframework.web.server.ServerWebExchange exchange, URI location) Performs a redirect based upon the providedServerWebExchange
andURI
-
Method Details
-
sendRedirect
reactor.core.publisher.Mono<Void> sendRedirect(org.springframework.web.server.ServerWebExchange exchange, URI location) Performs a redirect based upon the providedServerWebExchange
andURI
- Parameters:
exchange
- theServerWebExchange
to uselocation
- the location to redirect to- Returns:
Mono<Void>
to indicate when redirect is complete
-