8个Servlet Listener

来源:互联网 发布:mcu选型软件 编辑:程序博客网 时间:2024/05/02 02:18

session相关

HttpSessionListener

在HttpSession对象建立或被消灭时触发

HttpSessionAttributeListener

HttpSession有新对象加入,或者被替换、移除属性时触发

HttpSessionActivationListener

HttpSession对象暂存至存储器或者存储器上HttpSession对象重新加载到JVM时触发

HttpSessionBindingListener

某个类实现了HttpSessionBindingListener接口,那么在他的实例加入Session和移除的时候触发

request相关

ServletRequestListener

在HttpServletRequest对象建立或被消灭时触发

ServletRequestAttributeListener

有对象加入为HttpServletRequest对象的属性,或者置换和移除属性时触发

context相关

ServletContextListener

在Container加载Web应用程序或者当容器移除Web应用程序时触发

ServletContextAttributeListener

有对象加入为ServletContext(application)对象的属性或者置换和移除属性时触发

0 0
原创粉丝点击