Class PersistedSession

java.lang.Object
de.hybris.platform.servicelayer.web.session.PersistedSession
All Implemented Interfaces:
Serializable, org.springframework.session.ExpiringSession, org.springframework.session.Session

public class PersistedSession extends Object implements org.springframework.session.ExpiringSession, Serializable
See Also:
  • Constructor Details

    • PersistedSession

      public PersistedSession(String id, int clusterId, String extension, String contextRoot)
    • PersistedSession

      public PersistedSession(String id, int clusterId, String extension, String contextRoot, int maxInactiveIntervalInSeconds)
  • Method Details

    • getId

      public String getId()
      Specified by:
      getId in interface org.springframework.session.Session
    • getClusterId

      public int getClusterId()
    • getAttribute

      public <T> T getAttribute(String attributeName)
      Specified by:
      getAttribute in interface org.springframework.session.Session
    • getAttributeNames

      public Set<String> getAttributeNames()
      Specified by:
      getAttributeNames in interface org.springframework.session.Session
    • setAttribute

      public void setAttribute(String attributeName, Object attributeValue)
      Specified by:
      setAttribute in interface org.springframework.session.Session
    • maskNull

      protected Object maskNull(Object attributeValue)
    • unmaskNull

      protected Object unmaskNull(Object mapValue)
    • removeAttribute

      public void removeAttribute(String attributeName)
      Specified by:
      removeAttribute in interface org.springframework.session.Session
    • getCreationTime

      public long getCreationTime()
      Specified by:
      getCreationTime in interface org.springframework.session.ExpiringSession
    • setLastAccessedTime

      public void setLastAccessedTime(long lastAccessedTime)
      Specified by:
      setLastAccessedTime in interface org.springframework.session.ExpiringSession
    • getLastAccessedTime

      public long getLastAccessedTime()
      Specified by:
      getLastAccessedTime in interface org.springframework.session.ExpiringSession
    • setMaxInactiveIntervalInSeconds

      public void setMaxInactiveIntervalInSeconds(int interval)
      Specified by:
      setMaxInactiveIntervalInSeconds in interface org.springframework.session.ExpiringSession
    • getMaxInactiveIntervalInSeconds

      public int getMaxInactiveIntervalInSeconds()
      Specified by:
      getMaxInactiveIntervalInSeconds in interface org.springframework.session.ExpiringSession
    • isExpired

      public boolean isExpired()
      Specified by:
      isExpired in interface org.springframework.session.ExpiringSession
    • getExtension

      public String getExtension()
    • getContextRoot

      public String getContextRoot()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object