javax.servlet
类 ServletContextEvent

java.lang.Object
  继承者 java.util.EventObject
      继承者 javax.servlet.ServletContextEvent
所有已实现的接口:
Serializable
直接已知子类:
ServletContextAttributeEvent

public class ServletContextEvent
extends EventObject

This is the event class for notifications about changes to the servlet context of a web application.

从以下版本开始:
Servlet 2.3
另请参见:
ServletContextListener, 序列化表格

字段摘要
 
从类 java.util.EventObject 继承的字段
source
 
构造方法摘要
ServletContextEvent(ServletContext source)
          Construct a ServletContextEvent from the given context.
 
方法摘要
 ServletContext getServletContext()
          Return the ServletContext that changed.
 
从类 java.util.EventObject 继承的方法
getSource, toString
 
从类 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.

参数:
source - - the ServletContext that is sending the event.
方法详细信息

getServletContext

public ServletContext getServletContext()
Return the ServletContext that changed.

返回:
the ServletContext that sent the event.


Copyright © 2013. All Rights Reserved.