src/share/classes/com/sun/xml/internal/messaging/saaj/soap/MessageImpl.java

changeset 78
860b95cc8d1d
parent 50
42dfec6871f6
equal deleted inserted replaced
75:845fa487f0f7 78:860b95cc8d1d
20 * 20 *
21 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 21 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
22 * CA 95054 USA or visit www.sun.com if you need additional information or 22 * CA 95054 USA or visit www.sun.com if you need additional information or
23 * have any questions. 23 * have any questions.
24 */ 24 */
25 /*
26 *
27 *
28 *
29 */
30 25
31 26
32 package com.sun.xml.internal.messaging.saaj.soap; 27 package com.sun.xml.internal.messaging.saaj.soap;
33 28
34 import java.io.*; 29 import java.io.*;
149 * must be all lower case 144 * must be all lower case
150 * @param sub 145 * @param sub
151 * must be all lower case 146 * must be all lower case
152 */ 147 */
153 private static boolean isSoap1_1Type(String primary, String sub) { 148 private static boolean isSoap1_1Type(String primary, String sub) {
154 return primary.equals("text") && sub.equals("xml") 149 return primary.equalsIgnoreCase("text") && sub.equalsIgnoreCase("xml")
155 || primary.equals("application") 150 || primary.equals("application")
156 && sub.equals("fastinfoset"); 151 && sub.equals("fastinfoset");
157 } 152 }
158 153
159 /** 154 /**
846 if (attachments.get(i) != null) { 841 if (attachments.get(i) != null) {
847 f.add(attachments.get(i)); 842 f.add(attachments.get(i));
848 } 843 }
849 } 844 }
850 attachments = f; 845 attachments = f;
846 // needsSave();
851 } 847 }
852 848
853 public AttachmentPart createAttachmentPart() { 849 public AttachmentPart createAttachmentPart() {
854 return new AttachmentPartImpl(); 850 return new AttachmentPartImpl();
855 } 851 }

mercurial