You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by st...@apache.org on 2004/03/18 14:10:42 UTC

cvs commit: ws-axis/java/src/org/apache/axis/wsdl/toJava Utils.java

stevel      2004/03/18 05:10:41

  Modified:    java/src/org/apache/axis/wsdl/toJava Utils.java
  Log:
  support octet-stream too.
  
  Revision  Changes    Path
  1.84      +4 -1      ws-axis/java/src/org/apache/axis/wsdl/toJava/Utils.java
  
  Index: Utils.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/wsdl/toJava/Utils.java,v
  retrieving revision 1.83
  retrieving revision 1.84
  diff -u -r1.83 -r1.84
  --- Utils.java	25 Feb 2004 14:02:52 -0000	1.83
  +++ Utils.java	18 Mar 2004 13:10:41 -0000	1.84
  @@ -693,7 +693,10 @@
               } else if (mimeType.startsWith("multipart/")) {
                   return "(javax.mail.internet.MimeMultipart" + mimeDimensions
                           + ") " + var + ";";
  -            } else if (mimeType.startsWith("application/octetstream")) {
  +            } else if (mimeType.startsWith("application/octetstream")
  +                    || mimeType.startsWith("application/octet-stream")) {
  +                //the hyphenated test is new and RFC compliant; the old one was retained
  +                //for backwards compatibility.
                   return "(org.apache.axis.attachments.OctetStream"
                           + mimeDimensions + ") " + var + ";";
               } else {