com.vaadin.server.

Class WrappedPortletSession

    • Method Summary

      All Methods
      Modifier and Type Method and Description
      Object getAttribute(String name)

      Gets an attribute from this session.

      Object getAttribute(String name, int scope)

      Returns the object bound with the specified name in this session, or null if no object is bound under the name in the given scope.

      Set<String> getAttributeNames()

      Gets the current set of attribute names stored in this session.

      Set<String> getAttributeNames(int scope)

      Gets the current set of attribute names bound to this session in the given scope.

      long getCreationTime()

      Returns the time when this session was created, measured in milliseconds since midnight January 1, 1970 GMT.

      String getId()

      Gets a string with a unique identifier for the session.

      long getLastAccessedTime()

      Returns the last time the client sent a request associated with this session, as the number of milliseconds since midnight January 1, 1970 GMT, and marked by the time the container received the request.

      int getMaxInactiveInterval()

      Returns the maximum time interval, in seconds, that this session will be kept open between client accesses.

      PortletSession getPortletSession()

      Gets the wrapped PortletSession.

      void invalidate()

      Invalidates this session then unbinds any objects bound to it.

      boolean isNew()

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

      void removeAttribute(String name)

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

      void removeAttribute(String name, int scope)

      Removes the object bound with the specified name and the given scope from this session.

      void setAttribute(String name, Object value)

      Saves an attribute value in this session.

      void setAttribute(String name, Object value, int scope)

      Binds an object to this session in the given scope, using the name specified.

      void setMaxInactiveInterval(int interval)

      Specifies the time, in seconds, between client requests before the servlet container will invalidate this session.