axis-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1368726 - /axis/axis2/java/core/trunk/modules/jaxbri/src/test/java/org/apache/axis2/jaxbri/mtom/MtomImpl.java
Date Thu, 02 Aug 2012 21:59:19 GMT
Author: veithen
Date: Thu Aug  2 21:59:18 2012
New Revision: 1368726

URL: http://svn.apache.org/viewvc?rev=1368726&view=rev
Log:
Attempt to fix build failure.

Modified:
    axis/axis2/java/core/trunk/modules/jaxbri/src/test/java/org/apache/axis2/jaxbri/mtom/MtomImpl.java

Modified: axis/axis2/java/core/trunk/modules/jaxbri/src/test/java/org/apache/axis2/jaxbri/mtom/MtomImpl.java
URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/jaxbri/src/test/java/org/apache/axis2/jaxbri/mtom/MtomImpl.java?rev=1368726&r1=1368725&r2=1368726&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/jaxbri/src/test/java/org/apache/axis2/jaxbri/mtom/MtomImpl.java
(original)
+++ axis/axis2/java/core/trunk/modules/jaxbri/src/test/java/org/apache/axis2/jaxbri/mtom/MtomImpl.java
Thu Aug  2 21:59:18 2012
@@ -24,6 +24,7 @@ import java.util.Map;
 import java.util.UUID;
 
 import javax.activation.DataHandler;
+import javax.mail.util.ByteArrayDataSource;
 
 import org.apache.axiom.attachments.lifecycle.DataHandlerExt;
 import org.apache.commons.io.IOUtils;
@@ -46,7 +47,7 @@ public class MtomImpl implements MtomSke
 
     public RetrieveDocumentResponse retrieveDocument(RetrieveDocument retrieveDocument) {
         RetrieveDocumentResponse response = new RetrieveDocumentResponse();
-        response.setContent(new DataHandler(documents.get(retrieveDocument.getId()), "application/octet-stream"));
+        response.setContent(new DataHandler(new ByteArrayDataSource(documents.get(retrieveDocument.getId()),
"application/octet-stream")));
         return response;
     }
 }



Mime
View raw message