ServletContextAttributeListener
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private static final long | |
| private final Object |
| Access | Constructor and Description |
|---|---|
| public | ServletContextAttributeEvent(ServletContext
the ServletContext whose attribute changed source, String the name of the ServletContext attribute that changed name, Object the value of the ServletContext attribute that changed value)Constructs a ServletContextAttributeEvent from the given ServletContext, attribute name, and attribute value. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the name of the ServletContext attribute that changedGets the name of the ServletContext attribute that changed. |
| public Object | Returns: the value of the ServletContext attribute that changedGets the value of the ServletContext attribute that changed. |
| name | back to summary |
|---|---|
| private final String name | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| value | back to summary |
|---|---|
| private final Object value | |
| ServletContextAttributeEvent | back to summary |
|---|---|
| public ServletContextAttributeEvent(ServletContext source, String name, Object value) Constructs a ServletContextAttributeEvent from the given ServletContext, attribute name, and attribute value.
| |
| getName | back to summary |
|---|---|
| public String getName() Gets the name of the ServletContext attribute that changed.
| |
| getValue | back to summary |
|---|---|
| public Object getValue() Gets the value of the ServletContext attribute that changed. 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.
| |