| Modifier and Type | Field and Description |
|---|---|
| protected long | |
| protected Map | |
| protected String | |
| protected long | |
| protected long | |
| protected boolean | |
| protected long | |
| protected String | |
| protected long | |
| protected String | |
| protected long | |
| protected long | |
| protected boolean | |
| protected String | |
| private static final Logger | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | SessionData(String id, String cpath, String vhost, long created, long accessed, long lastAccessed, long maxInactiveMs)
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public long | |
| public long | |
| public void | |
| public void | |
| public void | |
| public static void | deserializeAttributes(SessionData
the SessionData for which to deserialize the attribute map data, ObjectInputStream the serialized stream in)De-serialize the attribute map of a session. |
| public long | |
| public Map | |
| public Object | |
| public String | Returns: the context path associated with this sessionGet the context path associated with this session. |
| public long | |
| public long | |
| public long | |
| public String | |
| public Set | |
| public long | |
| public String | |
| public long | Returns: time at which session was last written outGet time at which session was last written out. |
| public long | |
| public String | Returns: virtual host of context associated with sessionGet virtual host of context associated with session. |
| public boolean | |
| public boolean | |
| public boolean | |
| public void | |
| private void | |
| public static void | serializeAttributes(SessionData
the SessionData for which to serialize the attributes data, ObjectOutputStream the stream to which to serialize out)Serialize the attribute map of the session. |
| public void | |
| public Object | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setMetaDataDirty(boolean
true means non-attribute data has changed metaDataDirty)Set true means non-attribute data has changed. |
| public void | |
| public String | |
| private void |
| _accessed | back to summary |
|---|---|
| protected long _accessed | |
| _attributes | back to summary |
|---|---|
| protected Map<String, Object> _attributes | |
| _contextPath | back to summary |
|---|---|
| protected String _contextPath | |
| _cookieSet | back to summary |
|---|---|
| protected long _cookieSet | |
| _created | back to summary |
|---|---|
| protected long _created | |
| _dirty | back to summary |
|---|---|
| protected boolean _dirty | |
| _expiry | back to summary |
|---|---|
| protected long _expiry | |
| _id | back to summary |
|---|---|
| protected String _id | |
| _lastAccessed | back to summary |
|---|---|
| protected long _lastAccessed | |
| _lastNode | back to summary |
|---|---|
| protected String _lastNode | |
| _lastSaved | back to summary |
|---|---|
| protected long _lastSaved | |
| _maxInactiveMs | back to summary |
|---|---|
| protected long _maxInactiveMs | |
| _metaDataDirty | back to summary |
|---|---|
| protected boolean _metaDataDirty | |
| _vhost | back to summary |
|---|---|
| protected String _vhost | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| SessionData | back to summary |
|---|---|
| public SessionData(String id, String cpath, String vhost, long created, long accessed, long lastAccessed, long maxInactiveMs) | |
| SessionData | back to summary |
|---|---|
| public SessionData(String id, String cpath, String vhost, long created, long accessed, long lastAccessed, long maxInactiveMs, Map<String, Object> attributes) | |
| calcAndSetExpiry | back to summary |
|---|---|
| public void calcAndSetExpiry(long time) | |
| calcAndSetExpiry | back to summary |
|---|---|
| public void calcAndSetExpiry() | |
| calcExpiry | back to summary |
|---|---|
| public long calcExpiry() | |
| calcExpiry | back to summary |
|---|---|
| public long calcExpiry(long time) | |
| clean | back to summary |
|---|---|
| public void clean() Clear all dirty flags. | |
| clearAllAttributes | back to summary |
|---|---|
| public void clearAllAttributes() Remove all attributes | |
| copy | back to summary |
|---|---|
| public void copy(SessionData data) Copy the info from the given sessiondata
| |
| deserializeAttributes | back to summary |
|---|---|
| public static void deserializeAttributes(SessionData data, ObjectInputStream in) throws IOException, ClassNotFoundException De-serialize the attribute map of a session. When the session was serialized, we will have recorded which classloader should be used to recover the attribute value. The classloader could be the container classloader, or the webapp classloader.
| |
| getAccessed | back to summary |
|---|---|
| public long getAccessed() Get time session was accessed.
| |
| getAllAttributes | back to summary |
|---|---|
| public Map | |
| getAttribute | back to summary |
|---|---|
| public Object getAttribute(String name) | |
| getContextPath | back to summary |
|---|---|
| public String getContextPath() Get the context path associated with this session.
| |
| getCookieSet | back to summary |
|---|---|
| public long getCookieSet() Get time cookie was set.
| |
| getCreated | back to summary |
|---|---|
| public long getCreated() | |
| getExpiry | back to summary |
|---|---|
| public long getExpiry() Get time at which session expires.
| |
| getId | back to summary |
|---|---|
| public String getId() Get the id of the session.
| |
| getKeys | back to summary |
|---|---|
| public Set | |
| getLastAccessed | back to summary |
|---|---|
| public long getLastAccessed() Get previous time session was accessed.
| |
| getLastNode | back to summary |
|---|---|
| public String getLastNode() Get last node to manage the session.
| |
| getLastSaved | back to summary |
|---|---|
| public long getLastSaved() Get time at which session was last written out.
| |
| getMaxInactiveMs | back to summary |
|---|---|
| public long getMaxInactiveMs() | |
| getVhost | back to summary |
|---|---|
| public String getVhost() Get virtual host of context associated with session.
| |
| isDirty | back to summary |
|---|---|
public boolean isDirty()
| |
| isExpiredAt | back to summary |
|---|---|
| public boolean isExpiredAt(long time) | |
| isMetaDataDirty | back to summary |
|---|---|
public boolean isMetaDataDirty()
| |
| putAllAttributes | back to summary |
|---|---|
| public void putAllAttributes(Map<String, Object> attributes) | |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException | |
| serializeAttributes | back to summary |
|---|---|
| public static void serializeAttributes(SessionData data, ObjectOutputStream out) throws IOException Serialize the attribute map of the session. This special handling allows us to record which classloader should be used to load the value of the attribute: either the container classloader (which could be the application loader ie null, or jetty's startjar loader) or the webapp's classloader.
| |
| setAccessed | back to summary |
|---|---|
| public void setAccessed(long accessed) | |
| setAttribute | back to summary |
|---|---|
| public Object setAttribute(String name, Object value) | |
| setContextPath | back to summary |
|---|---|
| public void setContextPath(String contextPath) | |
| setCookieSet | back to summary |
|---|---|
| public void setCookieSet(long cookieSet) | |
| setCreated | back to summary |
|---|---|
| public void setCreated(long created) | |
| setDirty | back to summary |
|---|---|
| public void setDirty(boolean dirty) | |
| setDirty | back to summary |
|---|---|
| public void setDirty(String name) | |
| setExpiry | back to summary |
|---|---|
| public void setExpiry(long expiry) | |
| setId | back to summary |
|---|---|
| public void setId(String id) | |
| setLastAccessed | back to summary |
|---|---|
| public void setLastAccessed(long lastAccessed) | |
| setLastNode | back to summary |
|---|---|
| public void setLastNode(String lastNode) | |
| setLastSaved | back to summary |
|---|---|
| public void setLastSaved(long lastSaved) | |
| setMaxInactiveMs | back to summary |
|---|---|
| public void setMaxInactiveMs(long maxInactive) | |
| setMetaDataDirty | back to summary |
|---|---|
| public void setMetaDataDirty(boolean metaDataDirty) Set true means non-attribute data has changed.
| |
| setVhost | back to summary |
|---|---|
| public void setVhost(String vhost) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| writeObject | back to summary |
|---|---|
| private void writeObject(ObjectOutputStream out) throws IOException | |