public class NoOpServerRequestCache extends java.lang.Object implements ServerRequestCache
ServerRequestCache
that does nothing. This is used in stateless applicationsModifier and Type | Method and Description |
---|---|
static NoOpServerRequestCache |
getInstance() |
reactor.core.publisher.Mono<java.net.URI> |
getRedirectUri(org.springframework.web.server.ServerWebExchange exchange)
Get the URI that can be redirected to trigger the saved request to be used
|
reactor.core.publisher.Mono<org.springframework.http.server.reactive.ServerHttpRequest> |
removeMatchingRequest(org.springframework.web.server.ServerWebExchange exchange)
If the provided
ServerWebExchange matches the saved ServerHttpRequest
gets the saved ServerHttpRequest |
reactor.core.publisher.Mono<java.lang.Void> |
saveRequest(org.springframework.web.server.ServerWebExchange exchange)
Save the
ServerHttpRequest |
public reactor.core.publisher.Mono<java.lang.Void> saveRequest(org.springframework.web.server.ServerWebExchange exchange)
ServerRequestCache
ServerHttpRequest
saveRequest
in interface ServerRequestCache
exchange
- the exchange to saveMono<Void>
which only replays complete and error signals
from this Mono
.public reactor.core.publisher.Mono<java.net.URI> getRedirectUri(org.springframework.web.server.ServerWebExchange exchange)
ServerRequestCache
getRedirectUri
in interface ServerRequestCache
exchange
- the exchange to obtain the saved ServerHttpRequest
frompublic reactor.core.publisher.Mono<org.springframework.http.server.reactive.ServerHttpRequest> removeMatchingRequest(org.springframework.web.server.ServerWebExchange exchange)
ServerRequestCache
ServerWebExchange
matches the saved ServerHttpRequest
gets the saved ServerHttpRequest
removeMatchingRequest
in interface ServerRequestCache
exchange
- the exchange to obtain the request fromServerHttpRequest
public static NoOpServerRequestCache getInstance()