| org.apache.catalina.cluster.session.ReplicatedSession
Field Summary | |
protected boolean | isDirty |
isDirty | protected boolean isDirty(Code) | | |
expire | public void expire()(Code) | | |
getAccessCount | public int getAccessCount()(Code) | | |
getLastAccessWasDistributed | public long getLastAccessWasDistributed()(Code) | | |
getLastAccessedTime | public long getLastAccessedTime()(Code) | | |
getThisAccessedTime | public long getThisAccessedTime()(Code) | | |
invalidate | public void invalidate()(Code) | | |
isDirty | public boolean isDirty()(Code) | | |
isPrimarySession | public boolean isPrimarySession()(Code) | | returns true if this session is the primary session, if that is the
case, the manager can expire it upon timeout.
|
log | protected void log(String message)(Code) | | Implements a log method to log through the manager
|
readObjectData | public void readObjectData(ObjectInputStream stream) throws ClassNotFoundException, IOException(Code) | | Read a serialized version of the contents of this session object from
the specified object input stream, without requiring that the
StandardSession itself have been serialized.
Parameters: stream - The object input stream to read from exception: ClassNotFoundException - if an unknown class is specified exception: IOException - if an input/output error occurs |
removeAttribute | public void removeAttribute(String name)(Code) | | |
removeAttribute | public void removeAttribute(String name, boolean notify)(Code) | | see parent description,
plus we also notify other nodes in the cluster
|
setAccessCount | public void setAccessCount(int accessCount)(Code) | | |
setAttribute | public void setAttribute(String name, Object value)(Code) | | Sets an attribute and notifies the other nodes in the cluster
|
setIsDirty | public void setIsDirty(boolean dirty)(Code) | | |
setLastAccessWasDistributed | public void setLastAccessWasDistributed(long time)(Code) | | |
setLastAccessedTime | public void setLastAccessedTime(long lastAccessedTime)(Code) | | |
setMaxInactiveInterval | public void setMaxInactiveInterval(int interval)(Code) | | |
setPrimarySession | public void setPrimarySession(boolean primarySession)(Code) | | Sets whether this is the primary session or not.
Parameters: primarySession - Flag value |
setPrincipal | public void setPrincipal(Principal principal)(Code) | | Set the authenticated Principal that is associated with this Session.
This provides an Authenticator with a means to cache a
previously authenticated Principal, and avoid potentially expensive
Realm.authenticate() calls on every request.
Parameters: principal - The new Principal, or null if none |
setThisAccessedTime | public void setThisAccessedTime(long thisAccessedTime)(Code) | | |
writeObjectData | public void writeObjectData(ObjectOutputStream stream) throws IOException(Code) | | Write a serialized version of the contents of this session object to
the specified object output stream, without requiring that the
StandardSession itself have been serialized.
Parameters: stream - The object output stream to write to exception: IOException - if an input/output error occurs |
|
|