Top Description Methods
org.springframework.web.server.session

public Interface WebSessionIdResolver

Known Direct Implementers
org.springframework.web.server.session.CookieWebSessionIdResolver, org.springframework.web.server.session.HeaderWebSessionIdResolver
Imports
java.util.List, org.springframework.web.server.ServerWebExchange

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.
Author
Rossen Stoyanchev
Since
5.0
See Also
CookieWebSessionIdResolver

Method Summary

Modifier and TypeMethod and Description
public void
expireSession(ServerWebExchange
the current exchange
exchange
)

Instruct the client to end the current session.

public List<String>

Returns:

the session IDs or an empty list
resolveSessionIds
(ServerWebExchange
the current exchange
exchange
)

Resolve the session IDs associated with the request.

public void
setSessionId(ServerWebExchange
the current exchange
exchange
,
String
the session ID
sessionId
)

Send the given session ID to the client.

Method Detail

expireSessionback to summary
public void expireSession(ServerWebExchange exchange)

Instruct the client to end the current session.

Parameters
exchange:ServerWebExchange

the current exchange

resolveSessionIdsback to summary
public List<String> resolveSessionIds(ServerWebExchange exchange)

Resolve the session IDs associated with the request.

Parameters
exchange:ServerWebExchange

the current exchange

Returns:List<String>

the session IDs or an empty list

setSessionIdback to summary
public void setSessionId(ServerWebExchange exchange, String sessionId)

Send the given session ID to the client.

Parameters
exchange:ServerWebExchange

the current exchange

sessionId:String

the session ID