Class DeltaSession

  • java.lang.Object
    • org.apache.catalina.session.StandardSession
      • org.apache.geode.modules.session.catalina.DeltaSession
    • Field Summary

      • Fields inherited from class org.apache.catalina.session.StandardSession

        accessCount, ACTIVITY_CHECK, attributes, authType, creationTime, EMPTY_ARRAY, expiring, facade, id, isNew, isValid, LAST_ACCESS_AT_START, lastAccessedTime, listeners, manager, maxInactiveInterval, notes, principal, sessionContext, sm, STRICT_SERVLET_COMPLIANCE, support, thisAccessedTime
      • Fields inherited from interface org.apache.catalina.Session

        SESSION_ACTIVATED_EVENT, SESSION_CREATED_EVENT, SESSION_DESTROYED_EVENT, SESSION_PASSIVATED_EVENT
      • Fields inherited from interface org.apache.geode.internal.size.Sizeable

        PER_OBJECT_OVERHEAD
    • Constructor Summary

      Constructors 
      Constructor Description
      DeltaSession()
      Construct a new Session associated with no Manager.
      DeltaSession​(org.apache.catalina.Manager manager)
      Construct a new Session associated with the specified Manager.
    • Constructor Detail

      • DeltaSession

        public DeltaSession()
        Construct a new Session associated with no Manager. The Manager will be assigned later using setOwner(Object).
      • DeltaSession

        public DeltaSession​(org.apache.catalina.Manager manager)
        Construct a new Session associated with the specified Manager.
        Parameters:
        manager - The manager with which this Session is associated
    • Method Detail

      • getSession

        public javax.servlet.http.HttpSession getSession()
        Return the HttpSession for which this object is the facade.
        Specified by:
        getSession in interface org.apache.catalina.Session
        Overrides:
        getSession in class org.apache.catalina.session.StandardSession
      • getPrincipal

        public Principal getPrincipal()
        Specified by:
        getPrincipal in interface org.apache.catalina.Session
        Overrides:
        getPrincipal in class org.apache.catalina.session.StandardSession
      • setPrincipal

        public void setPrincipal​(Principal principal)
        Specified by:
        setPrincipal in interface org.apache.catalina.Session
        Overrides:
        setPrincipal in class org.apache.catalina.session.StandardSession
      • setAttribute

        public void setAttribute​(String name,
                                 Object value,
                                 boolean notify)
        Overrides:
        setAttribute in class org.apache.catalina.session.StandardSession
      • removeAttribute

        public void removeAttribute​(String name,
                                    boolean notify)
        Overrides:
        removeAttribute in class org.apache.catalina.session.StandardSession
      • removeAttributeInternal

        protected void removeAttributeInternal​(String name,
                                               boolean notify)
        Overrides:
        removeAttributeInternal in class org.apache.catalina.session.StandardSession
      • getAttributeInternal

        protected Object getAttributeInternal​(String name)
      • setAttributeInternal

        protected void setAttributeInternal​(String name,
                                            Object value)
      • getAttribute

        public Object getAttribute​(String name)
        Specified by:
        getAttribute in interface javax.servlet.http.HttpSession
        Overrides:
        getAttribute in class org.apache.catalina.session.StandardSession
      • deserializeAttributeInternal

        protected void deserializeAttributeInternal​(String name)
      • invalidate

        public void invalidate()
        Specified by:
        invalidate in interface javax.servlet.http.HttpSession
        Overrides:
        invalidate in class org.apache.catalina.session.StandardSession
      • expire

        public void expire​(boolean notify)
        Overrides:
        expire in class org.apache.catalina.session.StandardSession
      • setMaxInactiveInterval

        public void setMaxInactiveInterval​(int interval)
        Specified by:
        setMaxInactiveInterval in interface javax.servlet.http.HttpSession
        Specified by:
        setMaxInactiveInterval in interface org.apache.catalina.Session
        Overrides:
        setMaxInactiveInterval in class org.apache.catalina.session.StandardSession
      • hasDelta

        public boolean hasDelta()
        Description copied from interface: Delta
        Returns true if this object has pending changes it can write out as a delta. Returns false if this object must be transmitted in its entirety.
        Specified by:
        hasDelta in interface Delta
        Returns:
        whether this object has pending changes it can write out as a delta
      • toDelta

        public void toDelta​(DataOutput out)
                     throws IOException
        Description copied from interface: Delta
        This method is invoked on an application object at the delta sender, if GemFire determines the presence of a delta by calling Delta.hasDelta() on the object. The delta is written to the DataOutput object provided by GemFire.

        Any delta state should be reset in this method.

        Specified by:
        toDelta in interface Delta
        Parameters:
        out - the DataOutput to write to
        Throws:
        IOException - if a problem occurs while writing to out
      • getSizeInBytes

        public int getSizeInBytes()
        Specified by:
        getSizeInBytes in interface org.apache.geode.internal.size.Sizeable
      • toString

        public String toString()
        Overrides:
        toString in class org.apache.catalina.session.StandardSession