Interface SpringWebSession

All Superinterfaces:
AutoCloseable, org.springframework.web.server.WebSession
All Known Implementing Classes:
DistributableWebSession

public interface SpringWebSession extends org.springframework.web.server.WebSession, AutoCloseable
Author:
Paul Ferraro
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    To be invoked by WebSession.save().
    boolean
    Indicates whether this session was created during the current request.
    boolean
    Indicates whether this session was invalidated by the current request.

    Methods inherited from interface org.springframework.web.server.WebSession

    changeSessionId, getAttribute, getAttributeOrDefault, getAttributes, getCreationTime, getId, getLastAccessTime, getMaxIdleTime, getRequiredAttribute, invalidate, isExpired, isStarted, save, setMaxIdleTime, start
  • Method Details

    • isNew

      boolean isNew()
      Indicates whether this session was created during the current request.
      Returns:
      true, if this session was newly created, false otherwise.
    • isValid

      boolean isValid()
      Indicates whether this session was invalidated by the current request.
      Returns:
      true, if this session was invalidated, false otherwise.
    • close

      void close()
      To be invoked by WebSession.save().
      Specified by:
      close in interface AutoCloseable