1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 package org.apache.tiles.velocity.template;
23
24 import java.util.Map;
25
26 import javax.servlet.http.HttpServletRequest;
27 import javax.servlet.http.HttpServletResponse;
28
29 import org.apache.velocity.context.Context;
30 import org.apache.velocity.runtime.Renderable;
31
32 /***
33 * It represents an object that can be executed, with a body with "start" and
34 * "end" operation, under a Velocity+Servlet context.
35 *
36 * @version $Rev: 902403 $ $Date: 2010-01-23 14:31:17 +0100 (sab, 23 gen 2010) $
37 * @since 2.2.0
38 * @deprecated Use Velocity directives.
39 */
40 @Deprecated
41 public interface BodyExecutable {
42
43 /***
44 * Starts the execution of the commands.
45 *
46 * @param request The HTTP request.
47 * @param response The HTTP response-
48 * @param velocityContext The Velocity context.
49 * @param params The map of the parameters.
50 * @since 2.2.0
51 */
52 void start(HttpServletRequest request, HttpServletResponse response,
53 Context velocityContext, Map<String, Object> params);
54
55 /***
56 * Ends the execution of the commands.
57 *
58 * @param request The HTTP request.
59 * @param response The HTTP response-
60 * @param velocityContext The Velocity context.
61 * @return A renderable object. It does not necessary render anything.
62 * @since 2.2.0
63 */
64 Renderable end(HttpServletRequest request, HttpServletResponse response, Context velocityContext);
65 }