Class DeltaRequest

  • All Implemented Interfaces:
    java.io.Externalizable, java.io.Serializable

    public class DeltaRequest
    extends java.lang.Object
    implements java.io.Externalizable
    See Also:
    Serialized Form
    • Constructor Detail

      • DeltaRequest

        public DeltaRequest()
      • DeltaRequest

        public DeltaRequest​(java.lang.String sessionId,
                            boolean recordAllActions)
    • Method Detail

      • setAttribute

        public void setAttribute​(java.lang.String name,
                                 java.lang.Object value)
      • removeAttribute

        public void removeAttribute​(java.lang.String name)
      • setNote

        public void setNote​(java.lang.String name,
                            java.lang.Object value)
      • removeNote

        public void removeNote​(java.lang.String name)
      • setMaxInactiveInterval

        public void setMaxInactiveInterval​(int interval)
      • setPrincipal

        public void setPrincipal​(java.security.Principal p)
        Only support principals from type GenericPrincipal
        Parameters:
        p - Session principal
        See Also:
        GenericPrincipal
      • setNew

        public void setNew​(boolean n)
      • setAuthType

        public void setAuthType​(java.lang.String authType)
      • addSessionListener

        public void addSessionListener​(SessionListener listener)
      • removeSessionListener

        public void removeSessionListener​(SessionListener listener)
      • addAction

        protected void addAction​(int type,
                                 int action,
                                 java.lang.String name,
                                 java.lang.Object value)
      • execute

        public void execute​(DeltaSession session,
                            boolean notifyListeners)
      • reset

        public void reset()
      • getSessionId

        public java.lang.String getSessionId()
      • setSessionId

        public void setSessionId​(java.lang.String sessionId)
      • getSize

        public int getSize()
      • clear

        public void clear()
      • readExternal

        public void readExternal​(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Specified by:
        readExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
      • serialize

        protected byte[] serialize()
                            throws java.io.IOException
        serialize DeltaRequest
        Returns:
        serialized delta request
        Throws:
        java.io.IOException - IO error serializing
        See Also:
        writeExternal(java.io.ObjectOutput)