axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thil...@apache.org
Subject svn commit: r225287 - in /webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/attachments: ./ utils/
Date Tue, 26 Jul 2005 12:23:20 GMT
Author: thilina
Date: Tue Jul 26 05:23:01 2005
New Revision: 225287

URL: http://svn.apache.org/viewcvs?rev=225287&view=rev
Log:
moving utils clases to seperate package
-This line, and those below, will be ignored--

A    attachments/utils
A    attachments/utils/Base64.java
A    attachments/utils/JDK13IO.java
A    attachments/utils/IOUtils.java
A    attachments/utils/ImageIO.java
A    attachments/utils/ImageDataSource.java
D    attachments/Base64.java
D    attachments/JDK13IO.java
M    attachments/MIMEHelper.java
D    attachments/IOUtils.java
D    attachments/ImageIO.java
D    attachments/ImageDataSource.java

Added:
    webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/attachments/utils/
    webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/attachments/utils/Base64.java
      - copied unchanged from r225264, webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/attachments/Base64.java
    webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/attachments/utils/IOUtils.java
      - copied unchanged from r225264, webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/attachments/IOUtils.java
    webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/attachments/utils/ImageDataSource.java
      - copied unchanged from r225264, webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/attachments/ImageDataSource.java
    webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/attachments/utils/ImageIO.java
      - copied unchanged from r225264, webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/attachments/ImageIO.java
    webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/attachments/utils/JDK13IO.java
      - copied unchanged from r225264, webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/attachments/JDK13IO.java
Removed:
    webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/attachments/Base64.java
    webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/attachments/IOUtils.java
    webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/attachments/ImageDataSource.java
    webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/attachments/ImageIO.java
    webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/attachments/JDK13IO.java
Modified:
    webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/attachments/MIMEHelper.java

Modified: webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/attachments/MIMEHelper.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/attachments/MIMEHelper.java?rev=225287&r1=225286&r2=225287&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/attachments/MIMEHelper.java
(original)
+++ webservices/axis/trunk/java/modules/xml/src/org/apache/axis2/attachments/MIMEHelper.java
Tue Jul 26 05:23:01 2005
@@ -44,6 +44,8 @@
      */
     public static final String ROOT_PART = "SoapPart";
     
+    public static final String ATTACHMENTS = "Attachments";
+    
     /**
      * <code>ContentType</code> of the MIME message
      */
@@ -215,10 +217,8 @@
     public DataHandler getDataHandler(String blobContentID) throws OMException {
         
         Part bodyPart;
-        //	blobContentID = "<" + blobContentID + ">";
         boolean attachmentFound = false;
-        
-        //TODO make sure to add surrounding angle brackets to the content ID
+       
         if (bodyPartsMap.containsKey(blobContentID)) {
             bodyPart = (Part) bodyPartsMap.get(blobContentID);
             attachmentFound = true;
@@ -246,8 +246,7 @@
             } catch (MessagingException e) {
                 throw new OMException("Invalid Mime Message " + e);
             }
-        }
-        
+        }      
     }
     
     protected void setEndOfStream(boolean value)
@@ -269,8 +268,8 @@
             "Referenced MIME part not found.End of Stream reached.");
         
         MimeBodyPart mimeBodyPart = null;
-        MimeBodyPartInputStream partStream;
-        partStream = new MimeBodyPartInputStream(pushbackInStream, boundary,
+        MIMEBodyPartInputStream partStream;
+        partStream = new MIMEBodyPartInputStream(pushbackInStream, boundary,
                 this);
         try {
             mimeBodyPart = new MimeBodyPart(partStream);



Mime
View raw message