javax.servlet
Class ServletContextEvent
java.lang.Object
java.util.EventObject
javax.servlet.ServletContextEvent
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- ServletContextAttributeEvent
- public class ServletContextEvent
- extends java.util.EventObject
This is the event class for notifications about changes to the servlet context of a web application.
- Since:
- v 2.3
- See Also:
ServletContextListener,
Serialized Form
Class-Level Live Code Examples:
Code examples whose scope spans several methods in this class belong here. Code examples that illustrate how to use specific constructors and methods are found in the Constructor Detail and Method Detail sections below.
| Fields inherited from class java.util.EventObject |
source |
| Methods inherited from class java.util.EventObject |
getSource, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ServletContextEvent
public ServletContextEvent(ServletContext source)
- Construct a ServletContextEvent from the given context.
- Parameters:
source - - the ServletContext that is sending the event.
getServletContext
public ServletContext getServletContext()
- Return the ServletContext that changed.
- Returns:
- the ServletContext that sent the event.
Copyright © 1999-2002 The Apache Software Foundation. All Rights Reserved.