|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.catalina.session.StandardSession
org.glassfish.web.ha.session.management.BaseHASession
public abstract class BaseHASession
| Field Summary | |
|---|---|
protected boolean |
persistentFlag
|
protected java.lang.String |
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 | |
|---|---|
BaseHASession(Manager manager)
Creates a new instance of BaseHASession |
|
| Method Summary | |
|---|---|
java.lang.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()
|
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(java.lang.String id)
Set the session identifier for this session. |
void |
setPersistent(boolean value)
this sets the persistent flag |
void |
setPrincipal(java.security.Principal principal)
Overriding the setPrincipal of StandardSession |
void |
setUserName(java.lang.String value)
this sets the user name |
java.lang.String |
superToString()
Return a string representation of this object. |
void |
sync()
|
java.lang.String |
toString()
|
| 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, getVersion, hasExpired, isValid, lockForeground, removeNote, removeSessionListener, setAuthType, setCreationTime, setManager, setMaxInactiveInterval, setNew, setNote, setValid, unlockForeground |
| Field Detail |
|---|
protected java.lang.String userName
protected boolean persistentFlag
| Constructor Detail |
|---|
public BaseHASession(Manager manager)
| Method Detail |
|---|
public void setId(java.lang.String id)
setId in interface SessionsetId in class StandardSessionid - The new session identifierpublic abstract boolean isDirty()
isDirty in interface HASessionpublic abstract void setDirty(boolean value)
setDirty in interface HASessionvalue - public boolean isPersistent()
isPersistent in interface HASessionpublic void setPersistent(boolean value)
setPersistent in interface HASessionpublic java.lang.String getUserName()
getUserName in interface HASessionpublic void setUserName(java.lang.String value)
setUserName in interface HASessionpublic void setPrincipal(java.security.Principal principal)
setPrincipal in interface SessionsetPrincipal in class StandardSessionprincipal - The new Principal, or null if nonepublic boolean isPersistentFlag()
public void recycle()
recycle in interface Sessionrecycle in class StandardSessionpublic void save()
public void sync()
sync in interface HASessionpublic java.lang.String superToString()
public java.lang.String toString()
toString in class StandardSession
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||