接口 SessionIdResolver
public interface SessionIdResolver
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.
- 从以下版本开始:
- 2019-10-03 10:56
- 作者:
- TODAY
-
字段概要
字段 -
方法概要
修饰符和类型方法说明voidexpireSession(RequestContext exchange) Instruct the client to end the current session.getSessionId(RequestContext context) Resolving session id from RequestContextvoidsetSessionId(RequestContext context, String sessionId) Send the given session id to the client.
-
字段详细资料
-
WRITTEN_SESSION_ID_ATTR
-
-
方法详细资料
-
getSessionId
Resolving session id from RequestContextsession id including
applied session id- 参数:
context- request context- 返回:
- session id
-
setSessionId
Send the given session id to the client.- 参数:
context- the current contextsessionId- the session id
-
expireSession
Instruct the client to end the current session.- 参数:
exchange- the current exchange
-