public interface ServerRequestCache
ServerHttpRequest
so it can be "replayed" later. This is useful for
when a page was requested and authentication is necessary.Modifier and Type | Method and Description |
---|---|
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 |
reactor.core.publisher.Mono<java.lang.Void> saveRequest(org.springframework.web.server.ServerWebExchange exchange)
ServerHttpRequest
exchange
- the exchange to saveMono<Void>
which only replays complete and error signals
from this Mono
.reactor.core.publisher.Mono<java.net.URI> getRedirectUri(org.springframework.web.server.ServerWebExchange exchange)
exchange
- the exchange to obtain the saved ServerHttpRequest
fromreactor.core.publisher.Mono<org.springframework.http.server.reactive.ServerHttpRequest> removeMatchingRequest(org.springframework.web.server.ServerWebExchange exchange)
ServerWebExchange
matches the saved
ServerHttpRequest
gets the saved ServerHttpRequest
exchange
- the exchange to obtain the request fromServerHttpRequest