1 package org.tigris.scarab.services.email; 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 import org.apache.velocity.context.Context; 62 63 73 public interface EmailService extends Service 74 { 75 String SERVICE_NAME = "EmailService"; 76 77 87 String handleRequest(Context context, String filename) 88 throws Exception ; 89 90 103 String handleRequest(Context context, String template, 104 String charset, String encoding) 105 throws Exception ; 106 107 119 void handleRequest(Context context, String filename, 120 OutputStream out) 121 throws ServiceException; 122 123 138 void handleRequest(Context context, String filename, 139 OutputStream out, String charset, 140 String encoding) 141 throws ServiceException; 142 143 154 void handleRequest(Context context, String filename, 155 Writer writer) 156 throws ServiceException; 157 158 171 void handleRequest(Context context, String filename, 172 Writer writer, String encoding) 173 throws ServiceException; 174 } 175 | Popular Tags |