Class ModifiedAttributeHASession
- java.lang.Object
-
- org.apache.catalina.session.StandardSession
-
- org.glassfish.web.ha.session.management.BaseHASession
-
- org.glassfish.web.ha.session.management.ModifiedAttributeHASession
-
- All Implemented Interfaces:
jakarta.servlet.http.HttpSession
,Serializable
,Session
,HASession
public class ModifiedAttributeHASession extends BaseHASession
- Author:
- lwhite, Rajiv Mordani
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.glassfish.web.ha.session.management.BaseHASession
persistentFlag, userName
-
Fields inherited from class org.apache.catalina.session.StandardSession
_sessionLock, attributes, authType, containerEventMethod, context, creationTime, debug, EMPTY_ARRAY, expiring, facade, id, info, isNew, isValid, lastAccessedTime, listeners, manager, maxInactiveInterval, NOT_SERIALIZED, notes, principal, SEPARATE_BUFFER_SERIALIZATION, sessionLockMonitor, ssoId, ssoVersion, SYNC_STRING, thisAccessedTime, threadContextManager, version
-
Fields inherited from interface org.apache.catalina.Session
SESSION_CREATED_EVENT, SESSION_DESTROYED_EVENT
-
-
Constructor Summary
Constructors Constructor Description ModifiedAttributeHASession(Manager manager)
Creates a new instance of ModifiedAttributeHASession
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getAddedAttributes()
return an ArrayList of Strings whose elements are the names of the added attributesList<String>
getAddedAttributesPrevious()
return an ArrayList of Strings whose elements are the names of the added attributesList<String>
getDeletedAttributes()
return an ArrayList of Strings whose elements are the names of the deleted attributesList<String>
getModifiedAttributes()
return an ArrayList of Strings whose elements are the names of the modified attributes attributes must dirty, persistent and not deletedboolean
isDirty()
return isDirtyvoid
privateResetAttributeState()
void
removeAttribute(String name)
remove the attribute name and update the attribute state accordinglyvoid
setAttribute(String name, Object value)
set the attribute name to the value value and update the attribute state accordinglyvoid
setDirty(boolean isDirty)
set isDirty-
Methods inherited from class org.glassfish.web.ha.session.management.BaseHASession
getUserName, isPersistent, isPersistentFlag, recycle, save, setId, setPersistent, setPrincipal, setUserName, sync, toString
-
Methods inherited from class org.apache.catalina.session.StandardSession
access, activate, addSessionListener, endAccess, evaluateIfValid, exclude, expire, expire, expire, fireContainerEvent, fireSessionEvent, getAttribute, getAttributeInternal, getAttributeNames, getAttributeNamesInternal, getAttributes, getAuthType, getBeKey, getCreationTime, getId, getIdInternal, getInfo, getIsValid, getLastAccessedTime, getLastAccessedTimeInternal, getManager, getMaxInactiveInterval, getNote, getNoteNames, getPrincipal, getServletContext, getSession, getSessionLock, getSessionLockForForeground, getSipApplicationSessionId, getSsoId, getSsoVersion, getVersion, hasExpired, hasNonHttpLockOccurred, incrementVersion, invalidate, isForegroundLocked, isNew, isValid, keys, lockBackground, lockForeground, log, log, log, passivate, removeAttribute, removeNote, removeSessionListener, setAuthType, setBeKey, setCreationTime, setLastAccessedTime, setManager, setMaxInactiveInterval, setNew, setNote, setSessionLock, setSipApplicationSessionId, setSsoId, setSsoVersion, setValid, setVersion, tellNew, unlockBackground, unlockForeground, unlockForegroundCompletely
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.glassfish.web.ha.session.management.HASession
getSsoId, incrementVersion, setSsoId, setVersion
-
Methods inherited from interface org.apache.catalina.Session
access, addSessionListener, endAccess, expire, getAttributes, getAuthType, getCreationTime, getId, getIdInternal, getInfo, getIsValid, getLastAccessedTime, getManager, getMaxInactiveInterval, getNote, getNoteNames, getPrincipal, getSession, getSsoVersion, getVersion, hasExpired, isValid, lockForeground, removeNote, removeSessionListener, setAuthType, setCreationTime, setManager, setMaxInactiveInterval, setNew, setNote, setSsoVersion, setValid, unlockForeground
-
-
-
-
Constructor Detail
-
ModifiedAttributeHASession
public ModifiedAttributeHASession(Manager manager)
Creates a new instance of ModifiedAttributeHASession
-
-
Method Detail
-
getDeletedAttributes
public List<String> getDeletedAttributes()
return an ArrayList of Strings whose elements are the names of the deleted attributes
-
getModifiedAttributes
public List<String> getModifiedAttributes()
return an ArrayList of Strings whose elements are the names of the modified attributes attributes must dirty, persistent and not deleted
-
getAddedAttributes
public List<String> getAddedAttributes()
return an ArrayList of Strings whose elements are the names of the added attributes
-
getAddedAttributesPrevious
public List<String> getAddedAttributesPrevious()
return an ArrayList of Strings whose elements are the names of the added attributes
-
privateResetAttributeState
public void privateResetAttributeState()
-
setAttribute
public void setAttribute(String name, Object value)
set the attribute name to the value value and update the attribute state accordingly- Specified by:
setAttribute
in interfacejakarta.servlet.http.HttpSession
- Overrides:
setAttribute
in classStandardSession
- Parameters:
name
-value
-
-
removeAttribute
public void removeAttribute(String name)
remove the attribute name and update the attribute state accordingly- Specified by:
removeAttribute
in interfacejakarta.servlet.http.HttpSession
- Overrides:
removeAttribute
in classStandardSession
- Parameters:
name
-
-
isDirty
public boolean isDirty()
return isDirty- Specified by:
isDirty
in interfaceHASession
- Specified by:
isDirty
in classBaseHASession
-
setDirty
public void setDirty(boolean isDirty)
set isDirty- Specified by:
setDirty
in interfaceHASession
- Specified by:
setDirty
in classBaseHASession
- Parameters:
isDirty
-
-
-