Class Session
java.lang.Object
org.springframework.boot.web.server.servlet.Session
Session properties.
- Since:
- 4.0.0
- Author:
- Andy Wilkinson
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Available session tracking modes (mirrorsSessionTrackingMode
). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable File
Return the directory used to store session data.@Nullable Set
<Session.SessionTrackingMode> Return thesession tracking modes
.boolean
Return whether to persist session data between restarts.void
setPersistent
(boolean persistent) void
setStoreDir
(@Nullable File storeDir) void
setTimeout
(Duration timeout) void
setTrackingModes
(@Nullable Set<Session.SessionTrackingMode> trackingModes)
-
Constructor Details
-
Session
public Session()
-
-
Method Details
-
getTimeout
-
setTimeout
-
getTrackingModes
Return thesession tracking modes
.- Returns:
- the session tracking modes
-
setTrackingModes
-
isPersistent
public boolean isPersistent()Return whether to persist session data between restarts.- Returns:
true
to persist session data between restarts.
-
setPersistent
public void setPersistent(boolean persistent) -
getStoreDir
Return the directory used to store session data.- Returns:
- the session data store directory
-
setStoreDir
-
getCookie
-
getSessionStoreDirectory
-