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:
CookieWebSessionIdResolver
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
Method Detail
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 exchangesessionId
- the session id
expireSession
void expireSession(ServerWebExchange exchange)
Instruct the client to end the current session.- Parameters:
exchange
- the current exchange