Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
ServletRouter |
|
| 1.0;1 |
1 | /* | |
2 | * Created on May 14, 2005 | |
3 | * | |
4 | */ | |
5 | package org.webmacro.servlet; | |
6 | import javax.servlet.http.HttpServlet; | |
7 | ||
8 | ||
9 | /** | |
10 | * Implements a router dispatcher pattern for a servlet | |
11 | * handling a request in a WebMacro setting. | |
12 | * @author Lane Sharman | |
13 | */ | |
14 | public interface ServletRouter | |
15 | { | |
16 | /** | |
17 | * Implement this interface to process a request intercepted | |
18 | * by the TemplateServlet. | |
19 | * <p> | |
20 | * The HTTP request and response object have been embedded in the | |
21 | * request object as well as any global or request-based contexts. | |
22 | * </p> | |
23 | * @param servlet A reference to the Servlet invoking this type. | |
24 | * @param context The Web Context for this request. | |
25 | * @param template The template that was requested. | |
26 | * @throws Exception Exceptions thrown by the handler. | |
27 | */ | |
28 | public void handleWebRequest(HttpServlet servlet, | |
29 | WebContext context, | |
30 | String template) throws Exception; | |
31 | } |