Package 

Object UnsupportedSessionAdapter

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Long creationTime() Returns the time when this session was created.
      Long lastAccessedTime() Returns the last time the client sent a request associated with this session.
      String id() A string containing the unique identifier assigned to this session (Cookie).
      Integer maxInactiveInterval() Returns the maximum time interval in seconds between client accesses after which the session will be invalidated.
      Unit maxInactiveInterval(Integer value) Sets the time, in seconds, between client requests before the session is invalidated.
      Map<String, Object> attributes() Returns a Map of attribute object bound to this session.
      Object getAttribute(String name) Returns the attribute object bound to this session by the given name.
      Unit setAttribute(String name, Object value) Sets a attribute object to this session with the given name.
      Unit removeAttribute(String name) Removes the bound object from the session attribute with the specified name.
      Unit invalidate() Invalidates this session then unbinds any objects bound to it.
      Boolean isNew() Returns <code>true</code> if the client does not yet know about the session or if the client chooses not to join the session.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • creationTime

         Long creationTime()

        Returns the time when this session was created.

      • lastAccessedTime

         Long lastAccessedTime()

        Returns the last time the client sent a request associated with this session.

      • id

         String id()

        A string containing the unique identifier assigned to this session (Cookie).

      • maxInactiveInterval

         Integer maxInactiveInterval()

        Returns the maximum time interval in seconds between client accesses after which the session will be invalidated.

      • maxInactiveInterval

         Unit maxInactiveInterval(Integer value)

        Sets the time, in seconds, between client requests before the session is invalidated.

        Parameters:
        value - Maximum inactive time interval in seconds.
      • getAttribute

         Object getAttribute(String name)

        Returns the attribute object bound to this session by the given name.

        Parameters:
        name - String specifying the name of the object.
      • setAttribute

         Unit setAttribute(String name, Object value)

        Sets a attribute object to this session with the given name.

        Parameters:
        name - String specifying the name of the object.
        value - The object to be bound.
      • removeAttribute

         Unit removeAttribute(String name)

        Removes the bound object from the session attribute with the specified name.

        Parameters:
        name - String specifying the name of the object.
      • invalidate

         Unit invalidate()

        Invalidates this session then unbinds any objects bound to it.

      • isNew

         Boolean isNew()

        Returns <code>true</code> if the client does not yet know about the session or if the client chooses not to join the session.