Class NoOpServerRequestCache
- java.lang.Object
-
- org.springframework.security.web.server.savedrequest.NoOpServerRequestCache
-
- All Implemented Interfaces:
ServerRequestCache
public final class NoOpServerRequestCache extends java.lang.Object implements ServerRequestCache
An implementation ofServerRequestCachethat does nothing. This is used in stateless applications- Since:
- 5.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NoOpServerRequestCachegetInstance()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 usedreactor.core.publisher.Mono<org.springframework.http.server.reactive.ServerHttpRequest>removeMatchingRequest(org.springframework.web.server.ServerWebExchange exchange)If the providedServerWebExchangematches the savedServerHttpRequestgets the savedServerHttpRequestreactor.core.publisher.Mono<java.lang.Void>saveRequest(org.springframework.web.server.ServerWebExchange exchange)Save theServerHttpRequest
-
-
-
Method Detail
-
saveRequest
public reactor.core.publisher.Mono<java.lang.Void> saveRequest(org.springframework.web.server.ServerWebExchange exchange)
Description copied from interface:ServerRequestCacheSave theServerHttpRequest- Specified by:
saveRequestin interfaceServerRequestCache- Parameters:
exchange- the exchange to save- Returns:
- Return a
Mono<Void>which only replays complete and error signals from thisMono.
-
getRedirectUri
public reactor.core.publisher.Mono<java.net.URI> getRedirectUri(org.springframework.web.server.ServerWebExchange exchange)
Description copied from interface:ServerRequestCacheGet the URI that can be redirected to trigger the saved request to be used- Specified by:
getRedirectUriin interfaceServerRequestCache- Parameters:
exchange- the exchange to obtain the savedServerHttpRequestfrom- Returns:
- the URI that can be redirected to trigger the saved request to be used
-
removeMatchingRequest
public reactor.core.publisher.Mono<org.springframework.http.server.reactive.ServerHttpRequest> removeMatchingRequest(org.springframework.web.server.ServerWebExchange exchange)
Description copied from interface:ServerRequestCacheIf the providedServerWebExchangematches the savedServerHttpRequestgets the savedServerHttpRequest- Specified by:
removeMatchingRequestin interfaceServerRequestCache- Parameters:
exchange- the exchange to obtain the request from- Returns:
- the
ServerHttpRequest
-
getInstance
public static NoOpServerRequestCache getInstance()
-
-