ServletRequestAttributeListener
| Modifier and Type | Field and Description |
|---|---|
| private final String | name
Attribute name. |
| private static final long | |
| private final Object | value
Attribute value. |
| 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 giving the servlet context of this web application, the ServletRequest whose attributes are changing and the name and value of the attribute. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the name of the changed request attributeReturn the name of the attribute that changed on the ServletRequest. |
| public Object | Returns: the value of the changed request attributeReturns the value of the attribute that has been added, removed or replaced. |
| name | back to summary |
|---|---|
| private final String name Attribute name. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| value | back to summary |
|---|---|
| private final Object value Attribute value. | |
| ServletRequestAttributeEvent | back to summary |
|---|---|
| public ServletRequestAttributeEvent(ServletContext sc, ServletRequest request, String name, Object value) Construct a ServletRequestAttributeEvent giving the servlet context of this web application, the ServletRequest whose attributes are changing and the name and value of the attribute.
| |
| 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.
| |