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 ServerRedirectStrategy
A 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 providedServerWebExchange
andURI
-
-
-
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 providedServerWebExchange
andURI
- Parameters:
exchange
- theServerWebExchange
to uselocation
- the location to redirect to- Returns:
Mono<Void>
to indicate when redirect is complete
-
-