javax.servlet
Class ServletContextAttributeEvent
java.lang.Object
|
+--java.util.EventObject
|
+--javax.servlet.ServletContextAttributeEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class ServletContextAttributeEvent
- extends java.util.EventObject
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. |
ServletContext |
getServletContext()
Returns the ServletContext that changed. |
java.lang.Object |
getValue()
Returns the value of the attribute that changed. |
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 |
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
getServletContext
public ServletContext getServletContext()
- Returns the ServletContext that changed.
- Returns:
- the changed application
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.