接口 SessionIdResolver

所有已知实现类:
CompositeSessionIdResolver, CookieSessionIdResolver, HeaderSessionIdResolver

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
  • 字段详细资料

    • WRITTEN_SESSION_ID_ATTR

      static final String WRITTEN_SESSION_ID_ATTR
  • 方法详细资料

    • getSessionId

      @Nullable String getSessionId(RequestContext context)
      Resolving session id from RequestContext

      session id including applied session id

      参数:
      context - request context
      返回:
      session id
    • setSessionId

      void setSessionId(RequestContext context, String sessionId)
      Send the given session id to the client.
      参数:
      context - the current context
      sessionId - the session id
    • expireSession

      void expireSession(RequestContext exchange)
      Instruct the client to end the current session.
      参数:
      exchange - the current exchange