public abstract class BaseHASession extends StandardSession implements HASession
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
persistentFlag |
protected String |
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, versionSESSION_CREATED_EVENT, SESSION_DESTROYED_EVENT| Constructor and Description |
|---|
BaseHASession(Manager manager)
Creates a new instance of BaseHASession
|
| Modifier and Type | Method and Description |
|---|---|
String |
getUserName()
this returns the user name
|
abstract boolean |
isDirty()
always return true for isDirty()
this type of session is always dirty
|
boolean |
isPersistent()
is the session persistent
|
boolean |
isPersistentFlag() |
void |
recycle()
Release all object references, and initialize instance variables, in
preparation for reuse of this object.
|
void |
save() |
abstract void |
setDirty(boolean value)
this is deliberately a no-op
store framework calls this method
so it must be there but must not have
any effect
|
void |
setId(String id)
Set the session identifier for this session.
|
void |
setPersistent(boolean value)
this sets the persistent flag
|
void |
setPrincipal(Principal principal)
Overriding the setPrincipal of StandardSession
|
void |
setUserName(String value)
this sets the user name
|
String |
superToString()
Return a string representation of this object.
|
void |
sync() |
String |
toString()
Return a string representation of this object.
|
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, getSsoVersion, getValue, getValueNames, getVersion, hasExpired, hasNonHttpLockOccurred, incrementVersion, invalidate, isForegroundLocked, isNew, isValid, keys, lockBackground, lockForeground, log, log, log, passivate, putValue, removeAttribute, removeAttribute, removeNote, removeSessionListener, removeValue, setAttribute, setAuthType, setBeKey, setCreationTime, setLastAccessedTime, setManager, setMaxInactiveInterval, setNew, setNote, setSessionLock, setSipApplicationSessionId, setSsoId, setSsoVersion, setValid, setVersion, tellNew, unlockBackground, unlockForeground, unlockForegroundCompletelyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetSsoId, incrementVersion, setSsoId, setVersionaccess, 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, unlockForegroundprotected String userName
protected boolean persistentFlag
public BaseHASession(Manager manager)
public void setId(String id)
setId in interface SessionsetId in class StandardSessionid - The new session identifierpublic abstract boolean isDirty()
public abstract void setDirty(boolean value)
public boolean isPersistent()
isPersistent in interface HASessionpublic void setPersistent(boolean value)
setPersistent in interface HASessionpublic String getUserName()
getUserName in interface HASessionpublic void setUserName(String value)
setUserName in interface HASessionpublic void setPrincipal(Principal principal)
setPrincipal in interface SessionsetPrincipal in class StandardSessionprincipal - The new Principal, or null if nonepublic boolean isPersistentFlag()
public void recycle()
StandardSessionrecycle in interface Sessionrecycle in class StandardSessionpublic void save()
public String superToString()
public String toString()
StandardSessiontoString in class StandardSessionCopyright © 2017. All rights reserved.