public class DefaultServerRedirectStrategy extends java.lang.Object implements ServerRedirectStrategy
| Constructor and Description |
|---|
DefaultServerRedirectStrategy() |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<java.lang.Void> |
sendRedirect(org.springframework.web.server.ServerWebExchange exchange,
java.net.URI location) |
void |
setContextRelative(boolean contextRelative)
Sets if the location is relative to the context.
|
void |
setHttpStatus(org.springframework.http.HttpStatus httpStatus) |
public reactor.core.publisher.Mono<java.lang.Void> sendRedirect(org.springframework.web.server.ServerWebExchange exchange,
java.net.URI location)
sendRedirect in interface ServerRedirectStrategypublic void setHttpStatus(org.springframework.http.HttpStatus httpStatus)
public void setContextRelative(boolean contextRelative)
contextRelative - if redirects should be relative to the context.
Default is true.