javax.servlet
Class ServletContextAttributeEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.servlet.ServletContextEvent
          extended by javax.servlet.ServletContextAttributeEvent
All Implemented Interfaces:
java.io.Serializable

public class ServletContextAttributeEvent
extends ServletContextEvent

The event class for changes to servlet context attributes.

Since:
Servlet 2.3
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ServletContextAttributeEvent(ServletContext application, java.lang.String name, java.lang.Object value)
          Creates a ServletContextAttributeEvent for the changed application.
 
Method Summary
 java.lang.String getName()
          Returns the name of the attribute that changed.
 java.lang.Object getValue()
          Returns the value of the attribute that changed.
 java.lang.String toString()
           
 
Methods inherited from class javax.servlet.ServletContextEvent
getServletContext
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServletContextAttributeEvent

public ServletContextAttributeEvent(ServletContext application,
                                    java.lang.String name,
                                    java.lang.Object value)
Creates a ServletContextAttributeEvent for the changed application.

Parameters:
application - the servlet context that has changed.
name - the name of the attribute that changed
value - the value of the attribute that changed
Method Detail

getName

public java.lang.String getName()
Returns the name of the attribute that changed.


getValue

public java.lang.Object getValue()
Returns the value of the attribute that changed.
addthe new value
removethe old value
replacethe old value


toString

public java.lang.String toString()
Overrides:
toString in class java.util.EventObject