javax.servlet
Class ServletContextAttributeEvent
java.lang.Object
java.util.EventObject
javax.servlet.ServletContextEvent
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
Fields inherited from class java.util.EventObject |
source |
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 java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 changedvalue
- the value of the attribute that changed
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.
add | the new value
|
remove | the old value
|
replace | the old value
|
toString
public java.lang.String toString()
- Overrides:
toString
in class java.util.EventObject