You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by jm...@apache.org on 2001/12/04 05:36:58 UTC

cvs commit: jakarta-turbine-3/src/java/org/apache/turbine/modules Module.java

jmcnally    01/12/03 20:36:58

  Modified:    src/java/org/apache/turbine/modules Module.java
  Log:
  added handleRequest method that takes a Writer
  
  Revision  Changes    Path
  1.6       +10 -1     jakarta-turbine-3/src/java/org/apache/turbine/modules/Module.java
  
  Index: Module.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-3/src/java/org/apache/turbine/modules/Module.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- Module.java	2001/10/08 21:08:46	1.5
  +++ Module.java	2001/12/04 04:36:58	1.6
  @@ -54,6 +54,7 @@
    * <http://www.apache.org/>.
    */
   
  +import java.io.Writer;
   import org.apache.fulcrum.template.TurbineTemplate;
   import org.apache.fulcrum.ServiceException;
   import org.apache.turbine.Turbine;
  @@ -68,7 +69,7 @@
    * render content.
    *
    * @author <a href="mailto:jvanzyl@apache.org">Jason van Zyl</a>
  - * @version $Id: Module.java,v 1.5 2001/10/08 21:08:46 dlr Exp $
  + * @version $Id: Module.java,v 1.6 2001/12/04 04:36:58 jmcnally Exp $
    */
   public class Module
   {
  @@ -158,6 +159,14 @@
           throws ServiceException
       {
           return TurbineTemplate.handleRequest(new ContextAdapter(context), template);
  +    }
  +
  +    public static void handleRequest(TemplateContext context, 
  +                                       String template, Writer writer)
  +        throws ServiceException
  +    {
  +        TurbineTemplate.handleRequest(new ContextAdapter(context), 
  +                                      template, writer);
       }
   
       public static boolean templateExists(String template)
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>