接口 WebSessionManager
- 所有已知实现类:
DefaultWebSessionManager
public interface WebSessionManager
Main class for access to theWebSessionfor an HTTP request.- 从以下版本开始:
- 5.0
- 作者:
- Rossen Stoyanchev
- 另请参阅:
WebSessionIdResolver,WebSessionStore
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 reactor.core.publisher.Mono<WebSession>getSession(ServerWebExchange exchange)Return theWebSessionfor the given exchange.
方法详细资料
getSession
reactor.core.publisher.Mono<WebSession> getSession(ServerWebExchange exchange)
Return 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.- 参数:
exchange- the current exchange- 返回:
- promise for the WebSession