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

    Fields
    Modifier and Type
    Field
    Description
    protected AttributeHolder
    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

    Modifier and Type
    Method
    Description
    Returns the value of the attribute that has been added, removed or replaced.

    Methods inherited from class javax.servlet.http.HttpSessionBindingEvent

    getName, getSession

    Methods inherited from class java.util.EventObject

    getSource, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • 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 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 unbound
      sName - the name with which the object is bound or unbound
      holder - 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

      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 class javax.servlet.http.HttpSessionBindingEvent
      Returns:
      the value associated with this event