나만 알 수 없어서 만든 블로그

서블릿 관련 여러 가지 리스너 API 본문

JAVA/초급

서블릿 관련 여러 가지 리스너 API

코딩낙타 2022. 2. 12. 20:20
서블릿 관련 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()