java.lang.Object
org.springframework.boot.web.servlet.server.Session

public class Session extends Object
Session properties.
Since:
2.0.0
Author:
Andy Wilkinson
  • Constructor Details

    • Session

      public Session()
  • Method Details

    • getTimeout

      public Duration getTimeout()
    • setTimeout

      public void setTimeout(Duration timeout)
    • getTrackingModes

      public Set<Session.SessionTrackingMode> getTrackingModes()
      Returns:
      the session tracking modes
    • setTrackingModes

      public void setTrackingModes(Set<Session.SessionTrackingMode> trackingModes)
    • 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

      public File getStoreDir()
      Return the directory used to store session data.
      Returns:
      the session data store directory
    • setStoreDir

      public void setStoreDir(File storeDir)
    • getCookie

      public Cookie getCookie()