public class ServletContextAttributeEvent extends ServletContextEvent
ServletContextAttributeListener,
Serialized Form| Constructor and Description |
|---|
ServletContextAttributeEvent(ServletContext source,
java.lang.String name,
java.lang.Object value)
Constructs a ServletContextAttributeEvent from the given ServletContext, attribute name, and attribute value.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Gets the name of the ServletContext attribute that changed.
|
java.lang.Object |
getValue()
Gets the value of the ServletContext attribute that changed.
|
getServletContextpublic ServletContextAttributeEvent(ServletContext source, java.lang.String name, java.lang.Object value)
source - the ServletContext whose attribute changedname - the name of the ServletContext attribute that changedvalue - the value of the ServletContext attribute that changedpublic java.lang.String getName()
public java.lang.Object getValue()
If the attribute was added, this is the value of the attribute. If the attribute was removed, this is the value of the removed attribute. If the attribute was replaced, this is the old value of the attribute.