javax.servlet
Class ServletRequestAttributeEvent
java.lang.Object
java.util.EventObject
javax.servlet.ServletRequestEvent
javax.servlet.ServletRequestAttributeEvent
- All Implemented Interfaces:
- java.io.Serializable
public class ServletRequestAttributeEvent
- extends ServletRequestEvent
The event class for changes to servlet request attributes.
- Since:
- Servlet 2.4
- 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. |
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 |
ServletRequestAttributeEvent
public ServletRequestAttributeEvent(ServletContext application,
ServletRequest request,
java.lang.String name,
java.lang.Object value)
- Creates a ServletContextAttributeEvent for the changed application.
- Parameters:
application
- the servlet context that has changed.request
- the request 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
|