01: /*
02: * Copyright 2005 jWic Group (http://www.jwic.de)
03: * de.jwic.web.ServletInterceptor
04: * $Id: ServletInterceptor.java,v 1.1 2006/01/16 08:31:13 lordsam Exp $
05: */
06: package de.jwic.web;
07:
08: import javax.servlet.http.HttpServletRequest;
09: import javax.servlet.http.HttpServletResponse;
10:
11: /**
12: * Implementors of this Interface are invoked before and after
13: * the DispatcherServlet has handled a request.
14: *
15: * @version $Revision: 1.1 $
16: * @author Florian Lippisch
17: */
18: public interface ServletInterceptor {
19:
20: /**
21: * This method is invoked by the DispatcherServlet before the
22: * request is handled.
23: * @param req
24: * @param request
25: * @param resp
26: */
27: void preHandle(HttpServletRequest request, HttpServletResponse resp);
28:
29: /**
30: * This method is invoked by the DispatcherServlet after the request
31: * was handled and the data has been sent to the client.
32: * @param req
33: * @param request
34: * @param resp
35: */
36: void postHandle(HttpServletRequest request, HttpServletResponse resp);
37:
38: }
|