| java.lang.Object org.apache.catalina.session.StandardSession org.apache.catalina.ha.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 |
Methods inherited from org.apache.catalina.session.StandardSession | public void access()(Code)(Java Doc) public void activate()(Code)(Java Doc) public void addSessionListener(SessionListener listener)(Code)(Java Doc) public void endAccess()(Code)(Java Doc) protected boolean exclude(String name)(Code)(Java Doc) public void expire()(Code)(Java Doc) public void expire(boolean notify)(Code)(Java Doc) protected void fireContainerEvent(Context context, String type, Object data) throws Exception(Code)(Java Doc) public void fireSessionEvent(String type, Object data)(Code)(Java Doc) public Object getAttribute(String name)(Code)(Java Doc) public Enumeration getAttributeNames()(Code)(Java Doc) public String getAuthType()(Code)(Java Doc) public long getCreationTime()(Code)(Java Doc) public String getId()(Code)(Java Doc) public String getIdInternal()(Code)(Java Doc) public String getInfo()(Code)(Java Doc) public long getLastAccessedTime()(Code)(Java Doc) public long getLastAccessedTimeInternal()(Code)(Java Doc) public Manager getManager()(Code)(Java Doc) public int getMaxInactiveInterval()(Code)(Java Doc) public Object getNote(String name)(Code)(Java Doc) public Iterator getNoteNames()(Code)(Java Doc) public Principal getPrincipal()(Code)(Java Doc) public ServletContext getServletContext()(Code)(Java Doc) public HttpSession getSession()(Code)(Java Doc) public HttpSessionContext getSessionContext()(Code)(Java Doc) public Object getValue(String name)(Code)(Java Doc) public String[] getValueNames()(Code)(Java Doc) public void invalidate()(Code)(Java Doc) public boolean isNew()(Code)(Java Doc) public boolean isValid()(Code)(Java Doc) protected boolean isValidInternal()(Code)(Java Doc) protected String[] keys()(Code)(Java Doc) public void passivate()(Code)(Java Doc) public void putValue(String name, Object value)(Code)(Java Doc) protected void readObject(ObjectInputStream stream) throws ClassNotFoundException, IOException(Code)(Java Doc) public void readObjectData(ObjectInputStream stream) throws ClassNotFoundException, IOException(Code)(Java Doc) public void recycle()(Code)(Java Doc) public void removeAttribute(String name)(Code)(Java Doc) public void removeAttribute(String name, boolean notify)(Code)(Java Doc) protected void removeAttributeInternal(String name, boolean notify)(Code)(Java Doc) public void removeNote(String name)(Code)(Java Doc) public void removeSessionListener(SessionListener listener)(Code)(Java Doc) public void removeValue(String name)(Code)(Java Doc) public void setAttribute(String name, Object value)(Code)(Java Doc) public void setAttribute(String name, Object value, boolean notify)(Code)(Java Doc) public void setAuthType(String authType)(Code)(Java Doc) public void setCreationTime(long time)(Code)(Java Doc) public void setId(String id)(Code)(Java Doc) public void setManager(Manager manager)(Code)(Java Doc) public void setMaxInactiveInterval(int interval)(Code)(Java Doc) public void setNew(boolean isNew)(Code)(Java Doc) public void setNote(String name, Object value)(Code)(Java Doc) public void setPrincipal(Principal principal)(Code)(Java Doc) public void setValid(boolean isValid)(Code)(Java Doc) public void tellNew()(Code)(Java Doc) public String toString()(Code)(Java Doc) protected void writeObject(ObjectOutputStream stream) throws IOException(Code)(Java Doc) public void writeObjectData(ObjectOutputStream stream) throws IOException(Code)(Java Doc)
|
|
|