서블릿 관련 Listener |
추상 메서드 |
기능 |
ServletContextAttributeListener |
attributeAdded() |
Context 객체에 속성 추가/제거/수정 이벤트 발생 시 처리 |
attributeRemoved() |
attributeReplaced() |
HttpSessionListener |
sessionCreated() |
세션 객체의 생성/소멸 이벤트 발생 시 처리 |
sessionDestroyed() |
ServletRequestListener |
requestInitialized() |
클라이언트 요청 이벤트 발생 시 처리 |
requestDestroyed() |
ServletRequestAttrivuteListener |
attributeAdded() |
요청 객체에 속성 추가/제거/수정 이벤트 발생 시 처리 |
attributeRemoved() |
attributeReplaced() |
HttpSessionBindingListener |
valueBound() |
세션에 바인딩/언바인딩된 객체를 알려주는 이벤트 발생 시 처리 |
valueUnbound() |
HttpSessionAttributeListener |
attributeAdded() |
세션에 속성 추가/제거/수정 이벤트 발생 시 처리 |
attributeRemoved() |
attributeReplaced() |
ServletContextListener |
contextInitialized() |
컨텍스트 객체의 생성/소멸 이벤트 발생 시 처리 |
contextDestroyed() |
HttpSessionActivationListener |
sessionDidActivate() |
세션의 활성화/비활성화 이벤트 발생 시 처리 |
sessionWillPassivate() |