Class FullHASession
- java.lang.Object
-
- org.apache.catalina.session.StandardSession
-
- org.glassfish.web.ha.session.management.BaseHASession
-
- org.glassfish.web.ha.session.management.FullHASession
-
- All Implemented Interfaces:
jakarta.servlet.http.HttpSession
,Serializable
,Session
,HASession
public class FullHASession 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, sessionContext, 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 FullHASession(Manager manager)
Creates a new instance of FullHASession
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getAttribute(String name)
Return the object bound with the specified name in this session, ornull
if no object is bound with that name.boolean
isDirty()
always return true for isDirty() this type of session is always dirtyvoid
removeAttribute(String name)
Remove the object bound with the specified name from this session.void
setAttribute(String name, Object value)
Bind an object to this session, using the specified name.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-
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, getAttributeInternal, getAttributeNames, getAttributeNamesInternal, getAttributes, getAuthType, getBeKey, getCreationTime, getId, getIdInternal, getInfo, getIsValid, getLastAccessedTime, getLastAccessedTimeInternal, getManager, getMaxInactiveInterval, getNote, getNoteNames, getPrincipal, getServletContext, getSession, getSessionContext, getSessionLock, getSessionLockForForeground, getSipApplicationSessionId, getSsoId, getSsoVersion, getValue, getValueNames, getVersion, hasExpired, hasNonHttpLockOccurred, incrementVersion, invalidate, isForegroundLocked, isNew, isValid, keys, lockBackground, lockForeground, log, log, log, passivate, putValue, removeAttribute, removeNote, removeSessionListener, removeValue, 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
-
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 interfaceHASession
- Specified by:
isDirty
in classBaseHASession
-
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 interfaceHASession
- Specified by:
setDirty
in classBaseHASession
- 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 callsvalueUnbound()
on the object.- Specified by:
removeAttribute
in interfacejakarta.servlet.http.HttpSession
- Overrides:
removeAttribute
in classStandardSession
- 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 callsvalueBound()
on the object.- Specified by:
setAttribute
in interfacejakarta.servlet.http.HttpSession
- Overrides:
setAttribute
in classStandardSession
- Parameters:
name
- Name to which the object is bound, cannot be nullvalue
- 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, ornull
if no object is bound with that name.- Specified by:
getAttribute
in interfacejakarta.servlet.http.HttpSession
- Overrides:
getAttribute
in classStandardSession
- Parameters:
name
- Name of the attribute to be returned
-
-