public interface WebSessionManager
WebSession instances
associated with HTTP requests as well as the subsequent management such as
persistence and others.
The DefaultWebSessionManager implementation in turn delegates to
WebSessionIdResolver and WebSessionStore which abstract
underlying concerns related to the management of web sessions.
WebSessionIdResolver,
WebSessionStore| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<WebSession> |
getSession(ServerWebExchange exchange)
Return the
WebSession for the given exchange. |
reactor.core.publisher.Mono<WebSession> getSession(ServerWebExchange exchange)
WebSession for the given exchange. Always guaranteed
to return an instance either matching to the session id requested by the
client, or with a new session id either because the client did not
specify one or because the underlying session had expired.exchange - the current exchangeMono for async access to the session