|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.catalina.session.StandardSession
com.hazelcast.web.tomcat.HazelcastSession
public class HazelcastSession
| Field Summary | |
|---|---|
protected static String |
info
Descriptive information describing this Session implementation. |
| Fields inherited from class org.apache.catalina.session.StandardSession |
|---|
accessCount, ACTIVITY_CHECK, attributes, authType, containerEventMethod, containerEventTypes, creationTime, EMPTY_ARRAY, excludedAttributes, expiring, facade, id, isNew, isValid, lastAccessedTime, listeners, manager, maxInactiveInterval, NOT_SERIALIZED, notes, principal, sessionContext, sm, support, thisAccessedTime |
| Fields inherited from interface org.apache.catalina.Session |
|---|
SESSION_ACTIVATED_EVENT, SESSION_CREATED_EVENT, SESSION_DESTROYED_EVENT, SESSION_PASSIVATED_EVENT |
| Constructor Summary | |
|---|---|
HazelcastSession(org.apache.catalina.Manager manager)
Construct a new Session associated with the specified Manager. |
|
| Method Summary | |
|---|---|
void |
activate()
Perform internal processing required to activate this session. |
void |
expire(boolean notify)
Perform the internal processing required to invalidate this session, without triggering an exception if the session has already expired. |
Object |
getAttribute(String name)
Return the object bound with the specified name in this session, or null if no object is bound with that name. |
Enumeration |
getAttributeNames()
Return an Enumeration of String objects
containing the names of the objects bound to this session. |
Object |
getLocalAttribute(String name)
Get HazelAttribute directly |
javax.servlet.http.HttpSession |
getSession()
Return the HttpSession for which this object
is the facade. |
protected String[] |
keys()
Return the names of all currently defined session attributes as an array of Strings. |
protected void |
notifyRemove(String name,
Object value,
boolean notify)
|
void |
passivate()
Perform the internal processing required to passivate this session. |
protected void |
readObject(ObjectInputStream stream)
Read a serialized version of this session object from the specified object input stream. |
protected void |
removeAttributeHard(String name,
boolean notify)
|
protected void |
removeAttributeInternal(String name,
boolean notify)
Remove the object bound with the specified name from this session. |
void |
setAttribute(String name,
Object value,
boolean notify)
Bind an object to this session, using the specified name. |
void |
setId(String id)
Set the session identifier for this session. |
protected void |
writeObject(ObjectOutputStream stream)
Write a serialized version of this session object to the specified object output stream. |
| Methods inherited from class org.apache.catalina.session.StandardSession |
|---|
access, addSessionListener, endAccess, exclude, expire, fireContainerEvent, fireSessionEvent, getAuthType, getCreationTime, getId, getIdInternal, getInfo, getLastAccessedTime, getLastAccessedTimeInternal, getManager, getMaxInactiveInterval, getNote, getNoteNames, getPrincipal, getServletContext, getSessionContext, getValue, getValueNames, invalidate, isNew, isValid, isValidInternal, putValue, readObjectData, recycle, removeAttribute, removeAttribute, removeNote, removeSessionListener, removeValue, setAttribute, setAuthType, setCreationTime, setManager, setMaxInactiveInterval, setNew, setNote, setPrincipal, setValid, tellNew, toString, writeObjectData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final String info
| Constructor Detail |
|---|
public HazelcastSession(org.apache.catalina.Manager manager)
manager - The manager with which this Session is associated| Method Detail |
|---|
public javax.servlet.http.HttpSession getSession()
HttpSession for which this object
is the facade.
getSession in interface org.apache.catalina.SessiongetSession in class org.apache.catalina.session.StandardSessionpublic Object getAttribute(String name)
null if no object is bound with that name.
getAttribute in interface javax.servlet.http.HttpSessiongetAttribute in class org.apache.catalina.session.StandardSessionname - Name of the attribute to be returned
IllegalStateException - if this method is called on an
invalidated sessionpublic Object getLocalAttribute(String name)
public void setAttribute(String name,
Object value,
boolean notify)
HttpSessionBindingListener, the container calls
valueBound() on the object.
setAttribute in class org.apache.catalina.session.StandardSessionname - Name to which the object is bound, cannot be nullvalue - Object to be bound, cannot be nullnotify - whether to notify session listeners
IllegalArgumentException - if an attempt is made to add a
non-serializable object in an environment marked distributable.
IllegalStateException - if this method is called on an
invalidated session
protected void removeAttributeInternal(String name,
boolean notify)
HttpSessionBindingListener, the container calls
valueUnbound() on the object.
removeAttributeInternal in class org.apache.catalina.session.StandardSessionname - Name of the object to remove from this session.notify - Should we notify interested listeners that this
attribute is being removed?
protected void removeAttributeHard(String name,
boolean notify)
protected void notifyRemove(String name,
Object value,
boolean notify)
public void activate()
activate in class org.apache.catalina.session.StandardSessionpublic void passivate()
passivate in class org.apache.catalina.session.StandardSession
protected void readObject(ObjectInputStream stream)
throws ClassNotFoundException,
IOException
readObject in class org.apache.catalina.session.StandardSessionstream - The input stream to read from
ClassNotFoundException - if an unknown class is specified
IOException - if an input/output error occurs
protected void writeObject(ObjectOutputStream stream)
throws IOException
readObject(), you must set the associated Manager
explicitly.
IMPLEMENTATION NOTE: Any attribute that is not Serializable
will be unbound from the session, with appropriate actions if it
implements HttpSessionBindingListener. If you do not want any such
attributes, be sure the distributable property of the
associated Manager is set to true.
writeObject in class org.apache.catalina.session.StandardSessionstream - The output stream to write to
IOException - if an input/output error occurspublic void setId(String id)
setId in interface org.apache.catalina.SessionsetId in class org.apache.catalina.session.StandardSessionid - The new session identifierpublic void expire(boolean notify)
expire in class org.apache.catalina.session.StandardSessionnotify - Should we notify listeners about the demise of
this session?protected String[] keys()
keys in class org.apache.catalina.session.StandardSessionpublic Enumeration getAttributeNames()
Enumeration of String objects
containing the names of the objects bound to this session.
getAttributeNames in interface javax.servlet.http.HttpSessiongetAttributeNames in class org.apache.catalina.session.StandardSessionIllegalStateException - if this method is called on an
invalidated session
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||