2006/unicorn/src/org/w3c/unicorn/output MailOutputModule.java,1.9,1.10

Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/output
In directory hutz:/tmp/cvs-serv31926/src/org/w3c/unicorn/output

Modified Files:
	MailOutputModule.java 
Log Message:
added TODO

Index: MailOutputModule.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/output/MailOutputModule.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- MailOutputModule.java	24 Sep 2009 17:42:22 -0000	1.9
+++ MailOutputModule.java	28 Sep 2009 16:41:18 -0000	1.10
@@ -47,6 +47,8 @@
 		
 		if (mapOfSpecificParameters.get("format") != null)
 			format = mapOfSpecificParameters.get("format");
+		if (mapOfSpecificParameters.get("mimetype") != null)
+			mimeType = mapOfSpecificParameters.get("mimetype");
 		
 		mailOutputFormater = OutputFactory.createOutputFormater(format, lang, mimeType);
 	}
@@ -70,6 +72,10 @@
 	@SuppressWarnings("unchecked")
 	public void produceOutput(Map<String, Object> mapOfStringObject, final Writer aWriter) {
 		
+		
+		// TODO http://java.sun.com/developer/EJTechTips/2004/tt0625.html#1 for multipart messages
+		
+		
 		if (recipient == null)
 			return;
 		
@@ -96,7 +102,7 @@
 			
 			// Setting the Subject and Content Type
 			UnicornCall uniCall = (UnicornCall) mapOfStringObject.get("unicorncall");
-			boolean passed = ((UnicornCall) mapOfStringObject.get("unicorncall")).isPassed();
+			boolean passed = uniCall.isPassed();
 			
 			String subject = "[Unicorn] ";
 			if (passed)

Received on Monday, 28 September 2009 16:41:30 UTC