Interface WebSessionIdResolver

All Known Implementing Classes:
CookieWebSessionIdResolver, HeaderWebSessionIdResolver

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.
Since:
5.0
Author:
Rossen Stoyanchev
See Also:
  • Method Details

    • resolveSessionIds

      List<String> resolveSessionIds(ServerWebExchange exchange)
      Resolve the session id's associated with the request.
      Parameters:
      exchange - the current exchange
      Returns:
      the session id's or an empty list
    • setSessionId

      void setSessionId(ServerWebExchange exchange, String sessionId)
      Send the given session id to the client.
      Parameters:
      exchange - the current exchange
      sessionId - the session id
    • expireSession

      void expireSession(ServerWebExchange exchange)
      Instruct the client to end the current session.
      Parameters:
      exchange - the current exchange