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.
@FunctionalInterface public interface ServerRedirectStrategyA strategy for performing redirects.- Since:
- 5.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description reactor.core.publisher.Mono<java.lang.Void>sendRedirect(org.springframework.web.server.ServerWebExchange exchange, java.net.URI location)Performs a redirect based upon the providedServerWebExchangeandURI
-
-
-
Method Detail
-
sendRedirect
reactor.core.publisher.Mono<java.lang.Void> sendRedirect(org.springframework.web.server.ServerWebExchange exchange, java.net.URI location)Performs a redirect based upon the providedServerWebExchangeandURI- Parameters:
exchange- theServerWebExchangeto uselocation- the location to redirect to- Returns:
Mono<Void>to indicate when redirect is complete
-
-