01: /**
02: *
03: */package clime.messadmin.model;
04:
05: import java.util.EventListener;
06:
07: import javax.servlet.ServletContext;
08: import javax.servlet.http.HttpServletRequest;
09:
10: import clime.messadmin.filter.MessAdminRequestWrapper;
11: import clime.messadmin.filter.MessAdminResponseWrapper;
12:
13: /**
14: * Implementations of this interface recieve notifications about changes
15: * to the servlet request of the web application they are part of.
16: * Implementation note: we can't use a RequestLifeCycleProvider, as we need our internal wrapper
17: * @author Cédrik LIME
18: * @see javax.servlet.ServletRequestListener
19: * @since Servlet 2.4
20: */
21: public interface IRequestListener extends EventListener {
22: /**
23: * Notification that the servlet request is about to go into scope.
24: */
25: public void requestInitialized(HttpServletRequest request,
26: ServletContext servletContext);
27:
28: /**
29: * Notification that the servlet request is about to go out of scope.
30: */
31: public void requestDestroyed(MessAdminRequestWrapper request,
32: MessAdminResponseWrapper response,
33: ServletContext servletContext);
34:
35: /**
36: * Notification that the servlet request processing generated an exception.
37: */
38: public void requestException(Exception e,
39: MessAdminRequestWrapper request,
40: MessAdminResponseWrapper response,
41: ServletContext servletContext);
42: }
|