public class FullHASession extends BaseHASession
persistentFlag, userName
_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
SESSION_CREATED_EVENT, SESSION_DESTROYED_EVENT
Constructor and Description |
---|
FullHASession(Manager manager)
Creates a new instance of FullHASession
|
Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(String name)
Return the object bound with the specified name in this session, or
null if no object is bound with that name. |
boolean |
isDirty()
always return true for isDirty()
this type of session is always dirty
|
void |
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
|
getUserName, isPersistent, isPersistentFlag, recycle, save, setId, setPersistent, setPrincipal, setUserName, superToString, sync, toString
access, activate, addSessionListener, endAccess, evaluateIfValid, exclude, expire, expire, expire, fireContainerEvent, fireSessionEvent, getAttributeInternal, getAttributeNames, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getSsoId, incrementVersion, setSsoId, setVersion
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
public FullHASession(Manager manager)
manager
- public boolean isDirty()
isDirty
in interface HASession
isDirty
in class BaseHASession
public void setDirty(boolean isDirty)
setDirty
in interface HASession
setDirty
in class BaseHASession
isDirty
- public void removeAttribute(String name)
StandardSession
After this method executes, and if the object implements
HttpSessionBindingListener
, the container calls
valueUnbound()
on the object.
removeAttribute
in interface javax.servlet.http.HttpSession
removeAttribute
in class StandardSession
name
- Name of the object to remove from this session.public void setAttribute(String name, Object value)
StandardSession
After this method executes, and if the object implements
HttpSessionBindingListener
, the container calls
valueBound()
on the object.
setAttribute
in interface javax.servlet.http.HttpSession
setAttribute
in class StandardSession
name
- Name to which the object is bound, cannot be nullvalue
- Object to be bound, cannot be nullpublic Object getAttribute(String name)
StandardSession
null
if no object is bound with that name.getAttribute
in interface javax.servlet.http.HttpSession
getAttribute
in class StandardSession
name
- Name of the attribute to be returned
* @exception IllegalStateException if this method is called on an
invalidated sessionCopyright © 2018. All rights reserved.