01: /**
02: *
03: */package clime.messadmin.providers.spi;
04:
05: import javax.servlet.ServletContext;
06: import javax.servlet.http.HttpServletRequest;
07: import javax.servlet.http.HttpServletResponse;
08:
09: /**
10: * Note: this is about the same as a ServletFilter or a ServletRequestListener, except you don't have to change your web.xml and call chain.doFilter()
11: * Note: the invocation order of Providers is reversed in case of session/application destruction.
12: * @author Cédrik LIME
13: */
14: public interface RequestLifeCycleProvider extends BaseProvider {
15: /**
16: * Notification that the servlet request is about to go into scope.
17: */
18: public void requestInitialized(HttpServletRequest request,
19: HttpServletResponse response, ServletContext servletContext);
20:
21: /**
22: * Notification that the servlet request is about to go out of scope.
23: */
24: public void requestDestroyed(HttpServletRequest request,
25: HttpServletResponse response, ServletContext servletContext);
26: }
|