james-mime4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject svn commit: r1136800 - in /james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message: MessageFormatterImpl.java MessageServiceFactoryImpl.java MimeWriter.java
Date Fri, 17 Jun 2011 08:28:06 GMT
Author: bago
Date: Fri Jun 17 08:28:06 2011
New Revision: 1136800

URL: http://svn.apache.org/viewvc?rev=1136800&view=rev
Log:
No need to have MessageFormatterImpl as MimeWriter can directly implement MessageFormatter
and anyway the whole thing is exposed via MessageFormatter interface (MIME4J-193)

Removed:
    james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MessageFormatterImpl.java
Modified:
    james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MessageServiceFactoryImpl.java
    james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MimeWriter.java

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MessageServiceFactoryImpl.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MessageServiceFactoryImpl.java?rev=1136800&r1=1136799&r2=1136800&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MessageServiceFactoryImpl.java
(original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MessageServiceFactoryImpl.java
Fri Jun 17 08:28:06 2011
@@ -51,8 +51,7 @@ public class MessageServiceFactoryImpl e
 
     @Override
     public MessageFormatter newMessageFormatter() {
-        MessageFormatterImpl m = new MessageFormatterImpl();
-        return m;
+        return new MimeWriter();
     }
     
     @Override

Modified: james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MimeWriter.java
URL: http://svn.apache.org/viewvc/james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MimeWriter.java?rev=1136800&r1=1136799&r2=1136800&view=diff
==============================================================================
--- james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MimeWriter.java (original)
+++ james/mime4j/trunk/dom/src/main/java/org/apache/james/mime4j/message/MimeWriter.java Fri
Jun 17 08:28:06 2011
@@ -28,6 +28,7 @@ import org.apache.james.mime4j.dom.Body;
 import org.apache.james.mime4j.dom.Entity;
 import org.apache.james.mime4j.dom.Header;
 import org.apache.james.mime4j.dom.Message;
+import org.apache.james.mime4j.dom.MessageFormatter;
 import org.apache.james.mime4j.dom.Multipart;
 import org.apache.james.mime4j.dom.SingleBody;
 import org.apache.james.mime4j.dom.field.ContentTypeField;
@@ -47,7 +48,7 @@ import org.apache.james.mime4j.util.Mime
  * This class may be subclassed to implement custom strategies for writing
  * messages.
  */
-public class MimeWriter {
+public class MimeWriter implements MessageFormatter {
 
     private static final byte[] CRLF = { '\r', '\n' };
     private static final byte[] DASHES = { '-', '-' };



Mime
View raw message