dlr 01/10/02 13:09:47
Modified: src/services/java/org/apache/fulcrum/velocity
TurbineVelocity.java
Log:
Added handleRequest(Context, String, String, String) method to handle
character sets and encodings.
Revision Changes Path
1.3 +15 -3
jakarta-turbine-fulcrum/src/services/java/org/apache/fulcrum/velocity/TurbineVelocity.java
Index: TurbineVelocity.java
===================================================================
RCS file:
/home/cvs/jakarta-turbine-fulcrum/src/services/java/org/apache/fulcrum/velocity/TurbineVelocity.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -u -r1.2 -r1.3
--- TurbineVelocity.java 2001/08/10 11:46:25 1.2
+++ TurbineVelocity.java 2001/10/02 20:09:47 1.3
@@ -72,7 +72,7 @@
* @author <a href="mailto:[EMAIL PROTECTED]">John D. McNally</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Jon S. Stevens</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Jason van Zyl</a>
- * @version $Id: TurbineVelocity.java,v 1.2 2001/08/10 11:46:25 knielsen Exp $
+ * @version $Id: TurbineVelocity.java,v 1.3 2001/10/02 20:09:47 dlr Exp $
*/
public abstract class TurbineVelocity
{
@@ -95,14 +95,26 @@
* object.
*
* @param context A Context.
- * @param templateFilePath The path for the template files.
- * @return A String.
+ * @param template The path to the template file.
+ * @return The processed template.
* @exception Exception, a generic exception.
*/
public static String handleRequest(Context context, String template)
throws Exception
{
return getService().handleRequest(context, template);
+ }
+
+ /**
+ * @see org.apache.fulcrum.velocity.VelocityService#handleRequest(Context,
+ * String, String, String)
+ */
+ public String handleRequest(Context context, String template,
+ String charset, String encoding)
+ throws Exception
+ {
+ return getService().handleRequest(context, template, charset,
+ encoding);
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]