类型 | 消息类型 | 描述 |
---|---|---|
ServletContextListener contextInitialized() contextDestoryed() | ServletContextEvent | 监听上下文的创建或撤销 |
ServletContextAttributeListener attributeAdded() attributeRemoved() attributeReplaced() | ServletContextAttributeEvent | 监听ServletContext中 添加、删除、替换一个属性 |
ServletRequestListener requestInitialized() requestDestoryed() | ServletRequestEvent | 监听每个请求的到来 |
ServletRequestAttributeListener attributeAdded() attributeRemoved() attributeReplaced() | ServletRequestAttributeEvent | 监听一个请求中属性 的添加、删除、替换 |
HttpSessionListener sessionCreate() sessionDestoryed() | HttpSessionEvent | 监听每一个会话的创建和撤销 |
HttpSessionBindingListener valueBound() valueUnbound() | HttpSessionBindingEvent | 让需要和session绑定的一个属性类 实现这个接口,用于监听属性类与 session的绑定和解绑。 |
HttpSessionAttributeListener attributeAdded() attributeRemoved() attributeReplaced() | HttpSessionBindingEvent | 监听Session中属性的 添加、删除、替换 |
HttpSessionActivationListener sessionDidActive() sessionWillPassive() | HttpSessionEvent |
Servlet Listener 接口类型
最新推荐文章于 2024-06-25 10:18:00 发布