Top Description Fields Constructors Methods
javax.servlet

public Class ServletContextAttributeEvent

extends ServletContextEvent
Class Inheritance

This is the event class for notifications about changes to the attributes of the servlet context of a web application.
Since
Servlet 2.3
Version
$Rev: 46019 $ $Date: 2004-09-14 04:56:06 -0500 (Tue, 14 Sep 2004) $
See Also
ServletContextAttributeListener

Field Summary

Modifier and TypeField and Description
private String
private Object

Constructor Summary

AccessConstructor and Description
public
ServletContextAttributeEvent(ServletContext source, String name, Object value)

Construct a ServletContextAttributeEvent from the given context for the given attribute name and attribute value.

Method Summary

Modifier and TypeMethod and Description
public String
getName()

Return the name of the attribute that changed on the ServletContext.

public Object
getValue()

Returns the value of the attribute that has been added, removed, or replaced.

Inherited from javax.servlet.ServletContextEvent:
getServletContext

Field Detail

nameback to summary
private String name
valueback to summary
private Object value

Constructor Detail

ServletContextAttributeEventback 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.

Method Detail

getNameback to summary
public String getName()

Return the name of the attribute that changed on the ServletContext.

getValueback 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 attrubute was removed, this is the value of the removed attribute. If the attribute was replaced, this is the old value of the attribute.