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 anAttributeHolder
to obtain the value associated with the event.- Author:
- jh 2009.05.05
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected AttributeHolder
m_holder
An 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
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getValue()
Returns the value of the attribute that has been added, removed or replaced.-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Field Detail
-
m_holder
protected AttributeHolder m_holder
An AttributeHolder that can be used to retrieve the value of the attribute that has been added, removed or replaced.
-
-
Constructor Detail
-
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 Detail
-
getValue
public Object 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:
getValue
in classjavax.servlet.http.HttpSessionBindingEvent
- Returns:
- the value associated with this event
-
-