Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 78626 invoked from network); 18 Mar 2004 13:10:45 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 18 Mar 2004 13:10:45 -0000 Received: (qmail 6003 invoked by uid 500); 18 Mar 2004 13:10:40 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 5979 invoked by uid 500); 18 Mar 2004 13:10:40 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 5966 invoked from network); 18 Mar 2004 13:10:40 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 18 Mar 2004 13:10:40 -0000 Received: (qmail 78607 invoked by uid 1365); 18 Mar 2004 13:10:42 -0000 Date: 18 Mar 2004 13:10:42 -0000 Message-ID: <20040318131042.78606.qmail@minotaur.apache.org> From: stevel@apache.org To: ws-axis-cvs@apache.org Subject: cvs commit: ws-axis/java/src/org/apache/axis/wsdl/toJava Utils.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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 {