Class FullHASession

    • Constructor Detail

      • FullHASession

        public FullHASession​(Manager manager)
        Creates a new instance of FullHASession
        Parameters:
        manager -
    • Method Detail

      • isDirty

        public boolean isDirty()
        always return true for isDirty() this type of session is always dirty
        Specified by:
        isDirty in interface HASession
        Specified by:
        isDirty in class BaseHASession
      • setDirty

        public void setDirty​(boolean isDirty)
        this is deliberately a no-op store framework calls this method so it must be there but must not have any effect
        Specified by:
        setDirty in interface HASession
        Specified by:
        setDirty in class BaseHASession
        Parameters:
        isDirty -
      • removeAttribute

        public void removeAttribute​(String name)
        Description copied from class: StandardSession
        Remove the object bound with the specified name from this session. If the session does not have an object bound with this name, this method does nothing.

        After this method executes, and if the object implements HttpSessionBindingListener, the container calls valueUnbound() on the object.

        Specified by:
        removeAttribute in interface jakarta.servlet.http.HttpSession
        Overrides:
        removeAttribute in class StandardSession
        Parameters:
        name - Name of the object to remove from this session.
      • setAttribute

        public void setAttribute​(String name,
                                 Object value)
        Description copied from class: StandardSession
        Bind an object to this session, using the specified name. If an object of the same name is already bound to this session, the object is replaced.

        After this method executes, and if the object implements HttpSessionBindingListener, the container calls valueBound() on the object.

        Specified by:
        setAttribute in interface jakarta.servlet.http.HttpSession
        Overrides:
        setAttribute in class StandardSession
        Parameters:
        name - Name to which the object is bound, cannot be null
        value - Object to be bound, cannot be null
      • getAttribute

        public Object getAttribute​(String name)
        Description copied from class: StandardSession
        Return the object bound with the specified name in this session, or null if no object is bound with that name.
        Specified by:
        getAttribute in interface jakarta.servlet.http.HttpSession
        Overrides:
        getAttribute in class StandardSession
        Parameters:
        name - Name of the attribute to be returned