1 package org.apache.fulcrum.velocity; 2 3 56 57 import java.io.OutputStream ; 58 import java.io.Writer ; 59 60 import org.apache.fulcrum.Service; 61 import org.apache.fulcrum.ServiceException; 62 import org.apache.velocity.app.event.EventCartridge; 63 import org.apache.velocity.context.Context; 64 65 75 public interface VelocityService extends Service 76 { 77 public static final String SERVICE_NAME = "VelocityService"; 78 79 89 public String handleRequest(Context context, String filename) 90 throws Exception ; 91 92 105 public String handleRequest(Context context, String template, 106 String charset, String encoding) 107 throws Exception ; 108 109 121 public void handleRequest(Context context, String filename, 122 OutputStream out) 123 throws ServiceException; 124 125 140 public void handleRequest(Context context, String filename, 141 OutputStream out, String charset, 142 String encoding) 143 throws ServiceException; 144 145 156 public void handleRequest(Context context, String filename, 157 Writer writer) 158 throws ServiceException; 159 160 173 public void handleRequest(Context context, String filename, 174 Writer writer, String encoding) 175 throws ServiceException; 176 177 180 public EventCartridge getEventCartridge(); 181 182 187 public void setEventCartridgeEnabled(boolean value); 188 } 189 | Popular Tags |