Interface WebSessionManager
- All Known Implementing Classes:
DefaultWebSessionManager
public interface WebSessionManager
Main class for access to the
WebSession
for an HTTP request.- Since:
- 5.0
- Author:
- Rossen Stoyanchev
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<WebSession>
getSession
(ServerWebExchange exchange) Return theWebSession
for the given exchange.
-
Method Details
-
getSession
Return theWebSession
for the given exchange. Always guaranteed to return an instance either matching to the session id requested by the client, or a new session either because the client did not specify one or because the underlying session expired.- Parameters:
exchange
- the current exchange- Returns:
- promise for the WebSession
-