Class DefaultWebSessionManager
java.lang.Object
org.springframework.web.server.session.DefaultWebSessionManager
- All Implemented Interfaces:
- WebSessionManager
Default implementation of 
WebSessionManager delegating to a
 WebSessionIdResolver for session id resolution and to a
 WebSessionStore.- Since:
- 5.0
- Author:
- Rossen Stoyanchev, Rob Winch
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionreactor.core.publisher.Mono<WebSession>getSession(ServerWebExchange exchange) Return theWebSessionfor the given exchange.Return the configuredWebSessionIdResolver.Return the configuredWebSessionStore.voidsetSessionIdResolver(WebSessionIdResolver sessionIdResolver) Configure the id resolution strategy.voidsetSessionStore(WebSessionStore sessionStore) Configure the persistence strategy.
- 
Constructor Details- 
DefaultWebSessionManagerpublic DefaultWebSessionManager()
 
- 
- 
Method Details- 
setSessionIdResolverConfigure the id resolution strategy.By default an instance of CookieWebSessionIdResolver.- Parameters:
- sessionIdResolver- the resolver to use
 
- 
getSessionIdResolverReturn the configuredWebSessionIdResolver.
- 
setSessionStoreConfigure the persistence strategy.By default an instance of InMemoryWebSessionStore.- Parameters:
- sessionStore- the persistence strategy to use
 
- 
getSessionStoreReturn the configuredWebSessionStore.
- 
getSessionDescription copied from interface:WebSessionManagerReturn theWebSessionfor 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.- Specified by:
- getSessionin interface- WebSessionManager
- Parameters:
- exchange- the current exchange
- Returns:
- promise for the WebSession
 
 
-