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/07/24 05:09:23 UTC

cvs commit: jakarta-turbine/src/java/org/apache/turbine/services/template BaseTemplateEngineService.java

dlr         01/07/23 20:09:23

  Modified:    src/java/org/apache/turbine/services/template
                        BaseTemplateEngineService.java
  Log:
  Removed lame implementations of handleRequest() in favor of abstract
  hooks.
  
  Revision  Changes    Path
  1.15      +8 -11     jakarta-turbine/src/java/org/apache/turbine/services/template/BaseTemplateEngineService.java
  
  Index: BaseTemplateEngineService.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine/src/java/org/apache/turbine/services/template/BaseTemplateEngineService.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -u -r1.14 -r1.15
  --- BaseTemplateEngineService.java	2001/07/17 11:35:36	1.14
  +++ BaseTemplateEngineService.java	2001/07/24 03:09:23	1.15
  @@ -67,7 +67,7 @@
    *
    * @author <a href="mailto:dlr@finemaltcoding.com">Daniel Rall</a>
    * @author <a href="mailto:jvanzyl@apache.org">Jason van Zyl</a>
  - * @version $Id: BaseTemplateEngineService.java,v 1.14 2001/07/17 11:35:36 jvanzyl Exp $
  + * @version $Id: BaseTemplateEngineService.java,v 1.15 2001/07/24 03:09:23 dlr Exp $
    */
   public abstract class BaseTemplateEngineService 
       extends BaseService
  @@ -154,14 +154,11 @@
        */
       public abstract boolean templateExists(String template);
   
  -    public String handleRequest(TemplateContext context, String template)
  -        throws ServiceException
  -    {
  -        return "";
  -    }
  -
  -    public void handleRequest(TemplateContext context, String template, OutputStream os)
  -        throws ServiceException
  -    {
  -    }
  +    public abstract String handleRequest(TemplateContext context,
  +                                         String template)
  +        throws ServiceException;
  +
  +    public abstract void handleRequest(TemplateContext context,
  +                                       String template, OutputStream os)
  +        throws ServiceException;
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org