ServletRequestAttributeListener
| Access | Constructor and Description |
|---|---|
| public | ServletRequestAttributeEvent(ServletContext
the ServletContext that is sending the event. sc, ServletRequest the ServletRequest that is sending the event. request, String the name of the request attribute. name, Object the value of the request attribute. value)Construct a ServletRequestAttributeEvent from the given context for the given attribute name and attribute value. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: String the name of the changed request attribute.Return the name of the attribute that changed on the ServletRequest. |
| public Object | Returns: Object the value of the changed request attribute.Returns the value of the attribute that has been added removed or replaced. |
| ServletRequestAttributeEvent | back to summary |
|---|---|
| public ServletRequestAttributeEvent(ServletContext sc, ServletRequest request, String name, Object value) Construct a ServletRequestAttributeEvent from the given context for the given attribute name and attribute value.
| |
| getName | back to summary |
|---|---|
| public String getName() Return the name of the attribute that changed on the ServletRequest.
| |
| getValue | back to summary |
|---|---|
| public Object getValue() Returns the value of the attribute that has been added removed or replaced. 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.
| |