public class ServletContextAttributeEvent extends ServletContextEvent
ServletContextAttributeListener
,
Serialized Formsource
Constructor and Description |
---|
ServletContextAttributeEvent(ServletContext source,
String name,
Object value)
Constructs a ServletContextAttributeEvent from the given
ServletContext, attribute name, and attribute value.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Gets the name of the ServletContext attribute that changed.
|
Object |
getValue()
Gets the value of the ServletContext attribute that changed.
|
getServletContext
getSource, toString
public ServletContextAttributeEvent(ServletContext source, String name, Object value)
source
- the ServletContext whose attribute changedname
- the name of the ServletContext attribute that changedvalue
- the value of the ServletContext attribute that changedpublic String getName()
public Object getValue()
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.
Copyright © 1999-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms. Portions Copyright © 1999-2002 The Apache Software Foundation.