WebSessionIdResolver.
| Modifier and Type | Field and Description |
|---|---|
| private Duration | |
| private String | |
| private Consumer |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addCookieInitializer(Consumer<ResponseCookie.
consumer to initialize the cookie with initializerAdd a |
| public void | expireSession(ServerWebExchange
the current exchange exchange)Implements org. Instruct the client to end the current session. |
| public Duration | |
| public String | |
| private ResponseCookie. | |
| public List | resolveSessionIds(ServerWebExchange
the current exchange exchange)Implements org. Resolve the session IDs associated with the request. |
| public void | setCookieMaxAge(Duration
the maxAge duration value maxAge)Set the "Max-Age" attribute for the session id cookie. |
| public void | |
| public void | setSessionId(ServerWebExchange
the current exchange exchange, String the session ID id)Implements org. Send the given session ID to the client. |
| cookieMaxAge | back to summary |
|---|---|
| private Duration cookieMaxAge | |
| cookieName | back to summary |
|---|---|
| private String cookieName | |
| initializer | back to summary |
|---|---|
| private Consumer<ResponseCookie. | |
| CookieWebSessionIdResolver | back to summary |
|---|---|
| public CookieWebSessionIdResolver() | |
| addCookieInitializer | back to summary |
|---|---|
| public void addCookieInitializer(Consumer<ResponseCookie. Add a
| |
| expireSession | back to summary |
|---|---|
| public void expireSession(ServerWebExchange exchange) Implements org. Doc from org. Instruct the client to end the current session.
| |
| getCookieMaxAge | back to summary |
|---|---|
| public Duration getCookieMaxAge() Get the configured "Max-Age" for the session id cookie. | |
| getCookieName | back to summary |
|---|---|
| public String getCookieName() Get the configured cookie name. | |
| initCookie | back to summary |
|---|---|
| private ResponseCookie. | |
| resolveSessionIds | back to summary |
|---|---|
| public List Implements org. Doc from org. Resolve the session IDs associated with the request.
| |
| setCookieMaxAge | back to summary |
|---|---|
| public void setCookieMaxAge(Duration maxAge) Set the "Max-Age" attribute for the session id cookie. By default set to -1 in which case the cookie is removed when the browser is closed.
| |
| setCookieName | back to summary |
|---|---|
| public void setCookieName(String cookieName) Set the name for the session id cookie. By default set to "SESSION".
| |
| setSessionId | back to summary |
|---|---|
| public void setSessionId(ServerWebExchange exchange, String id) Implements org. Doc from org. Send the given session ID to the client.
| |