org.glassfish.web.ha.session.management
Class ModifiedHASession

java.lang.Object
  extended by org.apache.catalina.session.StandardSession
      extended by org.glassfish.web.ha.session.management.BaseHASession
          extended by org.glassfish.web.ha.session.management.ModifiedHASession
All Implemented Interfaces:
java.io.Serializable, javax.servlet.http.HttpSession, Session, HASession

public class ModifiedHASession
extends BaseHASession
implements javax.servlet.http.HttpSession, HASession, java.io.Serializable

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, containerEventTypes, context, creationTime, debug, EMPTY_ARRAY, expiring, facade, id, info, isNew, isValid, lastAccessedTime, listeners, manager, maxInactiveInterval, NOT_SERIALIZED, notes, principal, sessionContext, sm, ssoId, SYNC_STRING, thisAccessedTime, version
 
Fields inherited from interface org.apache.catalina.Session
SESSION_CREATED_EVENT, SESSION_DESTROYED_EVENT
 
Constructor Summary
ModifiedHASession(Manager manager)
          Creates a new instance of ModifiedHASession
 
Method Summary
 boolean isDirty()
          return isDirty
 void removeAttribute(java.lang.String name)
          remove the attribute name and update the dirty flag to true
 void setAttribute(java.lang.String name, java.lang.Object value)
          set the attribute name to the value value and update the dirty flag to true
 void 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, superToString, 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, getAttributes, getAuthType, getBeKey, getCreationTime, getId, getIdInternal, getInfo, getIsValid, getLastAccessedTime, getLastAccessedTimeInternal, getManager, getMaxInactiveInterval, getNote, getNoteNames, getPrincipal, getServletContext, getSession, getSessionContext, getSessionLock, getSessionLockForForeground, getSipApplicationSessionId, getSsoId, getValue, getValueNames, getVersion, hasExpired, hasNonHttpLockOccurred, incrementVersion, invalidate, isForegroundLocked, isNew, isValid, keys, lockBackground, lockForeground, log, log, passivate, putValue, removeAttribute, removeNote, removeSessionListener, removeValue, setAuthType, setBeKey, setCreationTime, setLastAccessedTime, setManager, setMaxInactiveInterval, setNew, setNote, setSessionLock, setSipApplicationSessionId, setSsoId, 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 javax.servlet.http.HttpSession
getAttribute, getAttributeNames, getCreationTime, getId, getLastAccessedTime, getMaxInactiveInterval, getServletContext, getSessionContext, getValue, getValueNames, invalidate, isNew, putValue, removeValue, setMaxInactiveInterval
 
Methods inherited from interface org.glassfish.web.ha.session.management.HASession
getSsoId, getUserName, incrementVersion, isPersistent, setPersistent, setSsoId, setUserName, setVersion, sync
 
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, getVersion, hasExpired, isValid, lockForeground, recycle, removeNote, removeSessionListener, setAuthType, setCreationTime, setId, setManager, setMaxInactiveInterval, setNew, setNote, setPrincipal, setValid, unlockForeground
 

Constructor Detail

ModifiedHASession

public ModifiedHASession(Manager manager)
Creates a new instance of ModifiedHASession

Method Detail

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object value)
set the attribute name to the value value and update the dirty flag to true

Specified by:
setAttribute in interface javax.servlet.http.HttpSession
Overrides:
setAttribute in class StandardSession
Parameters:
name -
value -

removeAttribute

public void removeAttribute(java.lang.String name)
remove the attribute name and update the dirty flag to true

Specified by:
removeAttribute in interface javax.servlet.http.HttpSession
Overrides:
removeAttribute in class StandardSession
Parameters:
name -

isDirty

public boolean isDirty()
return isDirty

Specified by:
isDirty in interface HASession
Specified by:
isDirty in class BaseHASession

setDirty

public void setDirty(boolean isDirty)
set isDirty

Specified by:
setDirty in interface HASession
Specified by:
setDirty in class BaseHASession
Parameters:
isDirty -


Copyright © 2012 GlassFish Community. All Rights Reserved.