Changeset 556:6f74740eea6e
- Timestamp:
- 09/28/09 16:41:18 (4 years ago)
- Author:
- tgambet
- Branch:
- default
- convert_revision:
- svn:cdcfb263-7567-472c-a848-e2c2df3466e7/trunk@557
- Message:
-
added TODO
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r538
|
r556
|
|
| 1 | | // $Id: MailOutputModule.java,v 1.9 2009-09-24 17:42:22 tgambet Exp $ |
| | 1 | // $Id: MailOutputModule.java,v 1.10 2009-09-28 16:41:18 tgambet Exp $ |
| 2 | 2 | // Author: Thomas Gambet |
| 3 | 3 | // (c) COPYRIGHT MIT, ERCIM and Keio, 2009. |
| … |
… |
|
| 48 | 48 | if (mapOfSpecificParameters.get("format") != null) |
| 49 | 49 | format = mapOfSpecificParameters.get("format"); |
| | 50 | if (mapOfSpecificParameters.get("mimetype") != null) |
| | 51 | mimeType = mapOfSpecificParameters.get("mimetype"); |
| 50 | 52 | |
| 51 | 53 | mailOutputFormater = OutputFactory.createOutputFormater(format, lang, mimeType); |
| … |
… |
|
| 70 | 72 | @SuppressWarnings("unchecked") |
| 71 | 73 | public void produceOutput(Map<String, Object> mapOfStringObject, final Writer aWriter) { |
| | 74 | |
| | 75 | |
| | 76 | // TODO http://java.sun.com/developer/EJTechTips/2004/tt0625.html#1 for multipart messages |
| | 77 | |
| 72 | 78 | |
| 73 | 79 | if (recipient == null) |
| … |
… |
|
| 97 | 103 | // Setting the Subject and Content Type |
| 98 | 104 | UnicornCall uniCall = (UnicornCall) mapOfStringObject.get("unicorncall"); |
| 99 | | boolean passed = ((UnicornCall) mapOfStringObject.get("unicorncall")).isPassed(); |
| | 105 | boolean passed = uniCall.isPassed(); |
| 100 | 106 | |
| 101 | 107 | String subject = "[Unicorn] "; |