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 Summary
Modifier and TypeMethodDescriptionvoid
expireSession
(ServerWebExchange exchange) Instruct the client to end the current session.resolveSessionIds
(ServerWebExchange exchange) Resolve the session IDs associated with the request.void
setSessionId
(ServerWebExchange exchange, String sessionId) Send the given session ID to the client.
-
Method Details
-
resolveSessionIds
Resolve the session IDs associated with the request.- Parameters:
exchange
- the current exchange- Returns:
- the session IDs or an empty list
-
setSessionId
Send the given session ID to the client.- Parameters:
exchange
- the current exchangesessionId
- the session ID
-
expireSession
Instruct the client to end the current session.- Parameters:
exchange
- the current exchange
-