1 16 package org.outerj.daisy.emailnotifier.serverimpl; 17 18 import org.apache.xmlbeans.XmlObject; 19 20 import java.util.Locale ; 21 22 public class DummyMailTemplate implements MailTemplate { 23 private String eventType; 24 private String eventDescription; 25 26 public DummyMailTemplate(String eventType, XmlObject eventDescription) { 27 this.eventType = eventType; 28 this.eventDescription = "The formatting of a nice message for this event hasn't been implemented yet, so I'll just put an XML dump of the event here.\n\n" + eventDescription.toString(); 29 } 30 31 public String getSubject(Locale locale) { 32 return eventType; 33 } 34 35 public String getMessage(Locale locale) { 36 return eventDescription; 37 } 38 } 39 | Popular Tags |