ServletContextAttributeListener
| 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 | ServletContextAttributeEvent(ServletContext
The ServletContext associated with this attribute event source, String The name of the servlet context attribute name, Object The value of the servlet context attribute value)Construct a ServletContextAttributeEvent from the given context for the given attribute name and attribute value. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: The name of the attribute that changedReturn the name of the attribute that changed on the ServletContext. |
| public Object | Returns: 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.Returns 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. | |
| ServletContextAttributeEvent | back to summary |
|---|---|
| public ServletContextAttributeEvent(ServletContext source, String name, Object value) Construct a ServletContextAttributeEvent 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 ServletContext.
| |
| getValue | back to summary |
|---|---|
| public Object getValue() Returns the value of the attribute that has been added, removed, or replaced.
| |