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 /** |