1/*2 * $Id: BodyExecutable.java 902403 2010-01-23 13:31:17Z apetrelli $3 *4 * Licensed to the Apache Software Foundation (ASF) under one5 * or more contributor license agreements. See the NOTICE file6 * distributed with this work for additional information7 * regarding copyright ownership. The ASF licenses this file8 * to you under the Apache License, Version 2.0 (the9 * "License"); you may not use this file except in compliance10 * with the License. You may obtain a copy of the License at11 *12 * http://www.apache.org/licenses/LICENSE-2.013 *14 * Unless required by applicable law or agreed to in writing,15 * software distributed under the License is distributed on an16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY17 * KIND, either express or implied. See the License for the18 * specific language governing permissions and limitations19 * under the License.20 */2122package org.apache.tiles.velocity.template;
2324import java.util.Map;
2526import javax.servlet.http.HttpServletRequest;
27import javax.servlet.http.HttpServletResponse;
2829import org.apache.velocity.context.Context;
30import org.apache.velocity.runtime.Renderable;
3132/***33 * It represents an object that can be executed, with a body with "start" and34 * "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.038 * @deprecated Use Velocity directives.39 */40 @Deprecated
41publicinterfaceBodyExecutable {
4243/***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.051 */52void start(HttpServletRequest request, HttpServletResponse response,
53 Context velocityContext, Map<String, Object> params);
5455/***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.063 */64 Renderable end(HttpServletRequest request, HttpServletResponse response, Context velocityContext);
65 }