| java.lang.Object org.apache.catalina.session.StandardSession org.apache.catalina.ha.session.DeltaSession
Method Summary | |
public void | applyDiff(byte[] diff, int offset, int length) Applies a diff to an existing object. | public void | expire(boolean notify) Perform the internal processing required to invalidate this session,
without triggering an exception if the session has already expired. | public void | expire(boolean notify, boolean notifyCluster) | protected Object | getAttributeInternal(String name) Return the value of an attribute without a check for validity. | public ClassLoader[] | getClassLoaders() | public DeltaRequest | getDeltaRequest() | public byte[] | getDiff() | public long | getLastAccessedTimeInternal() | protected long | getLastTimeReplicated() | public long | getVersion() | public boolean | isDiffable() If this returns true, the map will extract the diff using getDiff()
Otherwise it will serialize the entire object. | public boolean | isDirty() | public boolean | isPrimarySession() returns true if this session is the primary session, if that is the case,
the manager can expire it upon timeout. | public boolean | isValid() Return the isValid flag for this session. | public void | lock() | public synchronized void | readExternal(ObjectInput in) | public void | readObjectData(ObjectInput stream) 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. | public void | recycle() Release all object references, and initialize instance variables, in
preparation for reuse of this object. | public void | removeAttribute(String name, boolean notify) Remove the object bound with the specified name from this session. | public void | removeAttribute(String name, boolean notify, boolean addDeltaRequest) | protected void | removeAttributeInternal(String name, boolean notify, boolean addDeltaRequest) | public void | resetDeltaRequest() | public void | resetDiff() | protected void | setAccessCount(int count) | public void | setAttribute(String name, Object value) Bind an object to this session, using the specified name. | public void | setAttribute(String name, Object value, boolean notify, boolean addDeltaRequest) | public void | setId(String id) Set the session identifier for this session. | public void | setIdInternal(String id) Set the session identifier for this session without notify listeners. | protected void | setLastTimeReplicated(long lastTimeReplicated) | public void | setMaxInactiveInterval(int interval, boolean addDeltaRequest) | public void | setNew(boolean isNew) Set the isNew flag for this session. | public void | setNew(boolean isNew, boolean addDeltaRequest) | public void | setOwner(Object owner) | public void | setPrimarySession(boolean primarySession) Sets whether this is the primary session or not. | public void | setPrincipal(Principal principal) Set the authenticated Principal that is associated with this Session. | public void | setPrincipal(Principal principal, boolean addDeltaRequest) | public void | setVersion(long version) | public String | toString() Return a string representation of this object. | public void | unlock() | public synchronized void | writeExternal(ObjectOutput out) | public void | writeObjectData(ObjectOutput stream) 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. |
DeltaSession | public DeltaSession()(Code) | | Construct a new Session associated with the specified Manager.
Parameters: manager - The manager with which this Session is associated |
expire | public void expire(boolean notify)(Code) | | Perform the internal processing required to invalidate this session,
without triggering an exception if the session has already expired.
Parameters: notify - Should we notify listeners about the demise of this session? |
expire | public void expire(boolean notify, boolean notifyCluster)(Code) | | |
getAttributeInternal | protected Object getAttributeInternal(String name)(Code) | | Return the value of an attribute without a check for validity.
|
getLastAccessedTimeInternal | public long getLastAccessedTimeInternal()(Code) | | Return the last client access time without invalidation check
See Also: #getLastAccessedTime(). |
getLastTimeReplicated | protected long getLastTimeReplicated()(Code) | | |
getVersion | public long getVersion()(Code) | | |
isDiffable | public boolean isDiffable()(Code) | | If this returns true, the map will extract the diff using getDiff()
Otherwise it will serialize the entire object.
boolean |
isDirty | public boolean isDirty()(Code) | | Has the object changed since last replication
and is not in a locked state
boolean |
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.
|
isValid | public boolean isValid()(Code) | | Return the isValid flag for this session.
|
lock | public void lock()(Code) | | Lock during serialization
|
readObjectData | public void readObjectData(ObjectInput 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 |
recycle | public void recycle()(Code) | | Release all object references, and initialize instance variables, in
preparation for reuse of this object.
|
removeAttribute | public void removeAttribute(String name, boolean notify)(Code) | | Remove the object bound with the specified name from this session. If the
session does not have an object bound with this name, this method does
nothing.
After this method executes, and if the object implements
HttpSessionBindingListener , the container calls
valueUnbound() on the object.
Parameters: name - Name of the object to remove from this session. Parameters: notify - Should we notify interested listeners that this attribute isbeing removed? exception: IllegalStateException - if this method is called on an invalidated session |
removeAttribute | public void removeAttribute(String name, boolean notify, boolean addDeltaRequest)(Code) | | |
removeAttributeInternal | protected void removeAttributeInternal(String name, boolean notify, boolean addDeltaRequest)(Code) | | |
resetDeltaRequest | public void resetDeltaRequest()(Code) | | |
resetDiff | public void resetDiff()(Code) | | Resets the current diff state and resets the dirty flag
|
setAccessCount | protected void setAccessCount(int count)(Code) | | |
setAttribute | public void setAttribute(String name, Object value)(Code) | | Bind an object to this session, using the specified name. If an object of
the same name is already bound to this session, the object is replaced.
After this method executes, and if the object implements
HttpSessionBindingListener , the container calls
valueBound() on the object.
Parameters: name - Name to which the object is bound, cannot be null Parameters: value - Object to be bound, cannot be null exception: IllegalArgumentException - if an attempt is made to add a non-serializable object inan environment marked distributable. exception: IllegalStateException - if this method is called on an invalidated session |
setAttribute | public void setAttribute(String name, Object value, boolean notify, boolean addDeltaRequest)(Code) | | |
setId | public void setId(String id)(Code) | | Set the session identifier for this session.
Parameters: id - The new session identifier |
setIdInternal | public void setIdInternal(String id)(Code) | | Set the session identifier for this session without notify listeners.
Parameters: id - The new session identifier |
setLastTimeReplicated | protected void setLastTimeReplicated(long lastTimeReplicated)(Code) | | |
setMaxInactiveInterval | public void setMaxInactiveInterval(int interval, boolean addDeltaRequest)(Code) | | |
setNew | public void setNew(boolean isNew)(Code) | | Set the isNew flag for this session.
Parameters: isNew - The new value for the isNew flag |
setNew | public void setNew(boolean isNew, boolean addDeltaRequest)(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 |
setPrincipal | public void setPrincipal(Principal principal, boolean addDeltaRequest)(Code) | | |
setVersion | public void setVersion(long version)(Code) | | |
toString | public String toString()(Code) | | Return a string representation of this object.
|
unlock | public void unlock()(Code) | | Unlock after serialization
|
writeObjectData | public void writeObjectData(ObjectOutput 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)
|
|
|