接口 WebSessionIdResolver
public interface WebSessionIdResolver
Contract for session id resolution strategies. Allows for session id resolution through the request and for sending the session id or expiring the session through the response.- 从以下版本开始:
- 5.0
- 作者:
- Rossen Stoyanchev
- 另请参阅:
CookieWebSessionIdResolver
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 void
expireSession(ServerWebExchange exchange)
Instruct the client to end the current session.List<String>
resolveSessionIds(ServerWebExchange exchange)
Resolve the session id's associated with the request.void
setSessionId(ServerWebExchange exchange, String sessionId)
Send the given session id to the client.
方法详细资料
resolveSessionIds
List<String> resolveSessionIds(ServerWebExchange exchange)
Resolve the session id's associated with the request.- 参数:
exchange
- the current exchange- 返回:
- the session id's or an empty list
setSessionId
void setSessionId(ServerWebExchange exchange, String sessionId)
Send the given session id to the client.- 参数:
exchange
- the current exchangesessionId
- the session id
expireSession
void expireSession(ServerWebExchange exchange)
Instruct the client to end the current session.- 参数:
exchange
- the current exchange