Class PageTesterSession

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getAttribute​(java.lang.String name)
      Returns the value previously stored in the session.
      java.util.List<java.lang.String> getAttributeNames()
      Returns a list of the names of all attributes stored in the session.
      java.util.List<java.lang.String> getAttributeNames​(java.lang.String prefix)
      Returns a list of the names of all attributes stored in the session whose name has the provided prefix.
      int getMaxInactiveInterval()
      Returns the maximum time interval, in seconds, that the servlet container will keep this session open between client accesses.
      void invalidate()
      Invalidates this session then unbinds any objects bound to it.
      boolean isInvalidated()
      Checks to see if the session has been invalidated.
      void restoreDirtyObjects()
      Re-stores dirty objects back into the session.
      void setAttribute​(java.lang.String name, java.lang.Object value)
      Sets the value of an attribute.
      void setMaxInactiveInterval​(int seconds)
      Specifies the time, in seconds, between client requests before the servlet container will invalidate this session.
      • Methods inherited from class java.lang.Object

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

      • getAttributeNames

        public java.util.List<java.lang.String> getAttributeNames()
        Description copied from interface: Session
        Returns a list of the names of all attributes stored in the session. The names are returned sorted alphabetically.
        Specified by:
        getAttributeNames in interface Session
      • getAttributeNames

        public java.util.List<java.lang.String> getAttributeNames​(java.lang.String prefix)
        Description copied from interface: Session
        Returns a list of the names of all attributes stored in the session whose name has the provided prefix. The names are returned in alphabetical order.
        Specified by:
        getAttributeNames in interface Session
      • getAttribute

        public java.lang.Object getAttribute​(java.lang.String name)
        Description copied from interface: Session
        Returns the value previously stored in the session.
        Specified by:
        getAttribute in interface Session
      • setAttribute

        public void setAttribute​(java.lang.String name,
                                 java.lang.Object value)
        Description copied from interface: Session
        Sets the value of an attribute. If the value is null, then the attribute is deleted.
        Specified by:
        setAttribute in interface Session
      • getMaxInactiveInterval

        public int getMaxInactiveInterval()
        Description copied from interface: Session
        Returns the maximum time interval, in seconds, that the servlet container will keep this session open between client accesses. After this interval, the servlet container will invalidate the session. The maximum time interval can be set with the setMaxInactiveInterval method. A negative time indicates the session should never timeout.
        Specified by:
        getMaxInactiveInterval in interface Session
      • invalidate

        public void invalidate()
        Description copied from interface: Session
        Invalidates this session then unbinds any objects bound to it.
        Specified by:
        invalidate in interface Session
      • setMaxInactiveInterval

        public void setMaxInactiveInterval​(int seconds)
        Description copied from interface: Session
        Specifies the time, in seconds, between client requests before the servlet container will invalidate this session. A negative time indicates the session should never timeout.
        Specified by:
        setMaxInactiveInterval in interface Session