1 package org.apache.fulcrum.template; 2 3 56 57 import java.io.OutputStream ; 58 import java.io.Writer ; 59 import org.apache.fulcrum.Service; 60 import org.apache.fulcrum.ServiceException; 61 62 75 public interface TemplateService 76 extends Service 77 { 78 81 public static final String SERVICE_NAME = "TemplateService"; 82 83 86 public static final String CONTEXT = "TEMPLATE_CONTEXT"; 87 88 95 public String [] translateTemplatePaths(String [] templatePaths); 96 97 105 public boolean templateExists(String template, 106 String [] templatePaths); 107 108 114 public void registerTemplateEngineService(TemplateEngineService service); 115 116 public String handleRequest(TemplateContext context, String template) 117 throws ServiceException; 118 119 public void handleRequest(TemplateContext context, String template, 120 OutputStream outputStream) 121 throws ServiceException; 122 123 public void handleRequest(TemplateContext context, String template, 124 Writer writer) 125 throws ServiceException; 126 127 public TemplateContext getTemplateContext(); 128 129 public boolean templateExists(String template); 130 } 131 | Popular Tags |