You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by dl...@apache.org on 2001/10/02 22:09:47 UTC

cvs commit: jakarta-turbine-fulcrum/src/services/java/org/apache/fulcrum/velocity TurbineVelocity.java

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:jmcnally@collab.net">John D. McNally</a>
    * @author <a href="mailto:jon@latchkey.com">Jon S. Stevens</a>
    * @author <a href="mailto:jvanzyl@periapt.com.com">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: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org