Class HttpSessionBindingEvent
java.lang.Object
java.util.EventObject
javax.servlet.http.HttpSessionEvent
javax.servlet.http.HttpSessionBindingEvent
com.tangosol.coherence.servlet.api23.HttpSessionBindingEvent
- All Implemented Interfaces:
Serializable
public class HttpSessionBindingEvent
extends javax.servlet.http.HttpSessionBindingEvent
Optimized extension of the HttpSessionBindingEvent class that delegates to
an
AttributeHolder to obtain the value associated with the event.- Author:
- jh 2009.05.05
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AttributeHolderAn AttributeHolder that can be used to retrieve the value of the attribute that has been added, removed or replaced.Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionHttpSessionBindingEvent(javax.servlet.http.HttpSession session, String sName, AttributeHolder holder) Constructs an event that notifies an object that it has been bound to or unbound from a session. -
Method Summary
Methods inherited from class javax.servlet.http.HttpSessionBindingEvent
getName, getSessionMethods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
m_holder
An AttributeHolder that can be used to retrieve the value of the attribute that has been added, removed or replaced.
-
-
Constructor Details
-
HttpSessionBindingEvent
public HttpSessionBindingEvent(javax.servlet.http.HttpSession session, String sName, AttributeHolder holder) Constructs an event that notifies an object that it has been bound to or unbound from a session.- Parameters:
session- the session to which the object is bound or unboundsName- the name with which the object is bound or unboundholder- an AttributeHolder that can be used to retrieve the value of the attribute that has been added, removed or replaced; see #getValue
-
-
Method Details
-
getValue
Returns the value of the attribute that has been added, removed or replaced. If the attribute was added (or bound), this is the value of the attribute. If the attribute was removed (or unbound), this is the value of the removed attribute. If the attribute was replaced, this is the old value of the attribute.- Overrides:
getValuein classjavax.servlet.http.HttpSessionBindingEvent- Returns:
- the value associated with this event
-