서블릿의 여러가지 리스너
- ServletContextAttributeListener
- 추상메서드
- attributeAdded()
- attributeRemoved()
- attributeReplaced()
- -> Context 객체에 속성 추가/제거/수정 이벤트 발생 시 처리 메서드
- HttpSessionListener
- 추상메서드
- sessionCreated()
- sessionDestroyed()
- -> 세션 객체의 생성/소멸 이벤트 발생 시 처리 메서드
- ServletRequestListener
- 추상메서드
- attributedAdded()
- attributedRemoved()
- attributeReplaced()
- -> 요청 객체에 속성 추가/제거/수정 이벤트 발생 시 처리
- HttpSessionBindingListener
- valueBound()
- valueUnbound()
- -> 세션에 바인딩/언바인딩된 객체를 알려 주는 이벤트 발생시 처리
- HttpSessionAttributeListener
- attributedAdded()
- attributedRemoved()
- attributeReplaced()
- ->세션에 속성 추가/제거/수정 이벤트 발생 시 처리
- ServletContextLister
- contextInitialized()
- contextDestroyed()
- -> 컨텍스트 객체의 생성/소멸 이벤트 발생 시 처리
- HttpSessionActivationListener
- sessionDidActivate()
- sessionWillPassivate()
- -> 세션의 활성화/비활성화 이벤트 발생 시 처리
'JAVA' 카테고리의 다른 글
JSP 정의와 구성 요소 (0) | 2021.08.28 |
---|---|
HttpSessionBindingListener을 이용한 로그인 접속자수 표시 (0) | 2021.08.27 |
Filter를 이용한 한글 인코딩 실습 (0) | 2021.08.25 |
Filter API (0) | 2021.08.24 |
서블릿의 여러 가지 URL 패턴 (0) | 2021.08.24 |