Wed, 27 Apr 2016 01:27:09 +0800
Initial load
http://hg.openjdk.java.net/jdk8u/jdk8u/jaxws/
changeset: 657:d47a47f961ee
tag: jdk8u25-b17
aoqi@0 | 1 | /* |
aoqi@0 | 2 | * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. |
aoqi@0 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
aoqi@0 | 4 | * |
aoqi@0 | 5 | * This code is free software; you can redistribute it and/or modify it |
aoqi@0 | 6 | * under the terms of the GNU General Public License version 2 only, as |
aoqi@0 | 7 | * published by the Free Software Foundation. Oracle designates this |
aoqi@0 | 8 | * particular file as subject to the "Classpath" exception as provided |
aoqi@0 | 9 | * by Oracle in the LICENSE file that accompanied this code. |
aoqi@0 | 10 | * |
aoqi@0 | 11 | * This code is distributed in the hope that it will be useful, but WITHOUT |
aoqi@0 | 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
aoqi@0 | 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
aoqi@0 | 14 | * version 2 for more details (a copy is included in the LICENSE file that |
aoqi@0 | 15 | * accompanied this code). |
aoqi@0 | 16 | * |
aoqi@0 | 17 | * You should have received a copy of the GNU General Public License version |
aoqi@0 | 18 | * 2 along with this work; if not, write to the Free Software Foundation, |
aoqi@0 | 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
aoqi@0 | 20 | * |
aoqi@0 | 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
aoqi@0 | 22 | * or visit www.oracle.com if you need additional information or have any |
aoqi@0 | 23 | * questions. |
aoqi@0 | 24 | */ |
aoqi@0 | 25 | |
aoqi@0 | 26 | package com.sun.tools.internal.ws.wsdl.document.soap; |
aoqi@0 | 27 | |
aoqi@0 | 28 | import com.sun.xml.internal.ws.encoding.soap.streaming.SOAPNamespaceConstants; |
aoqi@0 | 29 | |
aoqi@0 | 30 | import javax.xml.namespace.QName; |
aoqi@0 | 31 | |
aoqi@0 | 32 | /** |
aoqi@0 | 33 | * Interface defining SOAP-related constants. |
aoqi@0 | 34 | * |
aoqi@0 | 35 | * @author WS Development Team |
aoqi@0 | 36 | */ |
aoqi@0 | 37 | public interface SOAPConstants { |
aoqi@0 | 38 | |
aoqi@0 | 39 | // namespace URIs |
aoqi@0 | 40 | public static final String URI_ENVELOPE = SOAPNamespaceConstants.ENVELOPE; |
aoqi@0 | 41 | public static final String NS_WSDL_SOAP = |
aoqi@0 | 42 | "http://schemas.xmlsoap.org/wsdl/soap/"; |
aoqi@0 | 43 | public static final String NS_SOAP_ENCODING = "http://schemas.xmlsoap.org/soap/encoding/"; |
aoqi@0 | 44 | |
aoqi@0 | 45 | // other URIs |
aoqi@0 | 46 | public final String URI_SOAP_TRANSPORT_HTTP = |
aoqi@0 | 47 | "http://schemas.xmlsoap.org/soap/http"; |
aoqi@0 | 48 | |
aoqi@0 | 49 | // QNames |
aoqi@0 | 50 | public static final QName QNAME_ADDRESS = |
aoqi@0 | 51 | new QName(NS_WSDL_SOAP, "address"); |
aoqi@0 | 52 | public static final QName QNAME_BINDING = |
aoqi@0 | 53 | new QName(NS_WSDL_SOAP, "binding"); |
aoqi@0 | 54 | public static final QName QNAME_BODY = new QName(NS_WSDL_SOAP, "body"); |
aoqi@0 | 55 | public static final QName QNAME_FAULT = new QName(NS_WSDL_SOAP, "fault"); |
aoqi@0 | 56 | public static final QName QNAME_HEADER = new QName(NS_WSDL_SOAP, "header"); |
aoqi@0 | 57 | public static final QName QNAME_HEADERFAULT = |
aoqi@0 | 58 | new QName(NS_WSDL_SOAP, "headerfault"); |
aoqi@0 | 59 | public static final QName QNAME_OPERATION = |
aoqi@0 | 60 | new QName(NS_WSDL_SOAP, "operation"); |
aoqi@0 | 61 | public static final QName QNAME_MUSTUNDERSTAND = |
aoqi@0 | 62 | new QName(URI_ENVELOPE, "mustUnderstand"); |
aoqi@0 | 63 | |
aoqi@0 | 64 | |
aoqi@0 | 65 | // SOAP encoding QNames |
aoqi@0 | 66 | public static final QName QNAME_TYPE_ARRAY = |
aoqi@0 | 67 | new QName(NS_SOAP_ENCODING, "Array"); |
aoqi@0 | 68 | public static final QName QNAME_ATTR_GROUP_COMMON_ATTRIBUTES = |
aoqi@0 | 69 | new QName(NS_SOAP_ENCODING, "commonAttributes"); |
aoqi@0 | 70 | public static final QName QNAME_ATTR_ARRAY_TYPE = |
aoqi@0 | 71 | new QName(NS_SOAP_ENCODING, "arrayType"); |
aoqi@0 | 72 | public static final QName QNAME_ATTR_OFFSET = |
aoqi@0 | 73 | new QName(NS_SOAP_ENCODING, "offset"); |
aoqi@0 | 74 | public static final QName QNAME_ATTR_POSITION = |
aoqi@0 | 75 | new QName(NS_SOAP_ENCODING, "position"); |
aoqi@0 | 76 | |
aoqi@0 | 77 | public static final QName QNAME_TYPE_BASE64 = |
aoqi@0 | 78 | new QName(NS_SOAP_ENCODING, "base64"); |
aoqi@0 | 79 | |
aoqi@0 | 80 | public static final QName QNAME_ELEMENT_STRING = |
aoqi@0 | 81 | new QName(NS_SOAP_ENCODING, "string"); |
aoqi@0 | 82 | public static final QName QNAME_ELEMENT_NORMALIZED_STRING = |
aoqi@0 | 83 | new QName(NS_SOAP_ENCODING, "normalizedString"); |
aoqi@0 | 84 | public static final QName QNAME_ELEMENT_TOKEN = |
aoqi@0 | 85 | new QName(NS_SOAP_ENCODING, "token"); |
aoqi@0 | 86 | public static final QName QNAME_ELEMENT_BYTE = |
aoqi@0 | 87 | new QName(NS_SOAP_ENCODING, "byte"); |
aoqi@0 | 88 | public static final QName QNAME_ELEMENT_UNSIGNED_BYTE = |
aoqi@0 | 89 | new QName(NS_SOAP_ENCODING, "unsignedByte"); |
aoqi@0 | 90 | public static final QName QNAME_ELEMENT_BASE64_BINARY = |
aoqi@0 | 91 | new QName(NS_SOAP_ENCODING, "base64Binary"); |
aoqi@0 | 92 | public static final QName QNAME_ELEMENT_HEX_BINARY = |
aoqi@0 | 93 | new QName(NS_SOAP_ENCODING, "hexBinary"); |
aoqi@0 | 94 | public static final QName QNAME_ELEMENT_INTEGER = |
aoqi@0 | 95 | new QName(NS_SOAP_ENCODING, "integer"); |
aoqi@0 | 96 | public static final QName QNAME_ELEMENT_POSITIVE_INTEGER = |
aoqi@0 | 97 | new QName(NS_SOAP_ENCODING, "positiveInteger"); |
aoqi@0 | 98 | public static final QName QNAME_ELEMENT_NEGATIVE_INTEGER = |
aoqi@0 | 99 | new QName(NS_SOAP_ENCODING, "negativeInteger"); |
aoqi@0 | 100 | public static final QName QNAME_ELEMENT_NON_NEGATIVE_INTEGER = |
aoqi@0 | 101 | new QName(NS_SOAP_ENCODING, "nonNegativeInteger"); |
aoqi@0 | 102 | public static final QName QNAME_ELEMENT_NON_POSITIVE_INTEGER = |
aoqi@0 | 103 | new QName(NS_SOAP_ENCODING, "nonPositiveInteger"); |
aoqi@0 | 104 | public static final QName QNAME_ELEMENT_INT = |
aoqi@0 | 105 | new QName(NS_SOAP_ENCODING, "int"); |
aoqi@0 | 106 | public static final QName QNAME_ELEMENT_UNSIGNED_INT = |
aoqi@0 | 107 | new QName(NS_SOAP_ENCODING, "unsignedInt"); |
aoqi@0 | 108 | public static final QName QNAME_ELEMENT_LONG = |
aoqi@0 | 109 | new QName(NS_SOAP_ENCODING, "long"); |
aoqi@0 | 110 | public static final QName QNAME_ELEMENT_UNSIGNED_LONG = |
aoqi@0 | 111 | new QName(NS_SOAP_ENCODING, "unsignedLong"); |
aoqi@0 | 112 | public static final QName QNAME_ELEMENT_SHORT = |
aoqi@0 | 113 | new QName(NS_SOAP_ENCODING, "short"); |
aoqi@0 | 114 | public static final QName QNAME_ELEMENT_UNSIGNED_SHORT = |
aoqi@0 | 115 | new QName(NS_SOAP_ENCODING, "unsignedShort"); |
aoqi@0 | 116 | public static final QName QNAME_ELEMENT_DECIMAL = |
aoqi@0 | 117 | new QName(NS_SOAP_ENCODING, "decimal"); |
aoqi@0 | 118 | public static final QName QNAME_ELEMENT_FLOAT = |
aoqi@0 | 119 | new QName(NS_SOAP_ENCODING, "float"); |
aoqi@0 | 120 | public static final QName QNAME_ELEMENT_DOUBLE = |
aoqi@0 | 121 | new QName(NS_SOAP_ENCODING, "double"); |
aoqi@0 | 122 | public static final QName QNAME_ELEMENT_BOOLEAN = |
aoqi@0 | 123 | new QName(NS_SOAP_ENCODING, "boolean"); |
aoqi@0 | 124 | public static final QName QNAME_ELEMENT_TIME = |
aoqi@0 | 125 | new QName(NS_SOAP_ENCODING, "time"); |
aoqi@0 | 126 | public static final QName QNAME_ELEMENT_DATE_TIME = |
aoqi@0 | 127 | new QName(NS_SOAP_ENCODING, "dateTime"); |
aoqi@0 | 128 | public static final QName QNAME_ELEMENT_DURATION = |
aoqi@0 | 129 | new QName(NS_SOAP_ENCODING, "duration"); |
aoqi@0 | 130 | public static final QName QNAME_ELEMENT_DATE = |
aoqi@0 | 131 | new QName(NS_SOAP_ENCODING, "date"); |
aoqi@0 | 132 | public static final QName QNAME_ELEMENT_G_MONTH = |
aoqi@0 | 133 | new QName(NS_SOAP_ENCODING, "gMonth"); |
aoqi@0 | 134 | public static final QName QNAME_ELEMENT_G_YEAR = |
aoqi@0 | 135 | new QName(NS_SOAP_ENCODING, "gYear"); |
aoqi@0 | 136 | public static final QName QNAME_ELEMENT_G_YEAR_MONTH = |
aoqi@0 | 137 | new QName(NS_SOAP_ENCODING, "gYearMonth"); |
aoqi@0 | 138 | public static final QName QNAME_ELEMENT_G_DAY = |
aoqi@0 | 139 | new QName(NS_SOAP_ENCODING, "gDay"); |
aoqi@0 | 140 | public static final QName QNAME_ELEMENT_G_MONTH_DAY = |
aoqi@0 | 141 | new QName(NS_SOAP_ENCODING, "gMonthDay"); |
aoqi@0 | 142 | public static final QName QNAME_ELEMENT_NAME = |
aoqi@0 | 143 | new QName(NS_SOAP_ENCODING, "Name"); |
aoqi@0 | 144 | public static final QName QNAME_ELEMENT_QNAME = |
aoqi@0 | 145 | new QName(NS_SOAP_ENCODING, "QName"); |
aoqi@0 | 146 | public static final QName QNAME_ELEMENT_NCNAME = |
aoqi@0 | 147 | new QName(NS_SOAP_ENCODING, "NCName"); |
aoqi@0 | 148 | public static final QName QNAME_ELEMENT_ANY_URI = |
aoqi@0 | 149 | new QName(NS_SOAP_ENCODING, "anyURI"); |
aoqi@0 | 150 | public static final QName QNAME_ELEMENT_ID = |
aoqi@0 | 151 | new QName(NS_SOAP_ENCODING, "ID"); |
aoqi@0 | 152 | public static final QName QNAME_ELEMENT_IDREF = |
aoqi@0 | 153 | new QName(NS_SOAP_ENCODING, "IDREF"); |
aoqi@0 | 154 | public static final QName QNAME_ELEMENT_IDREFS = |
aoqi@0 | 155 | new QName(NS_SOAP_ENCODING, "IDREFS"); |
aoqi@0 | 156 | public static final QName QNAME_ELEMENT_ENTITY = |
aoqi@0 | 157 | new QName(NS_SOAP_ENCODING, "ENTITY"); |
aoqi@0 | 158 | public static final QName QNAME_ELEMENT_ENTITIES = |
aoqi@0 | 159 | new QName(NS_SOAP_ENCODING, "ENTITIES"); |
aoqi@0 | 160 | public static final QName QNAME_ELEMENT_NOTATION = |
aoqi@0 | 161 | new QName(NS_SOAP_ENCODING, "NOTATION"); |
aoqi@0 | 162 | public static final QName QNAME_ELEMENT_NMTOKEN = |
aoqi@0 | 163 | new QName(NS_SOAP_ENCODING, "NMTOKEN"); |
aoqi@0 | 164 | public static final QName QNAME_ELEMENT_NMTOKENS = |
aoqi@0 | 165 | new QName(NS_SOAP_ENCODING, "NMTOKENS"); |
aoqi@0 | 166 | |
aoqi@0 | 167 | public static final QName QNAME_TYPE_STRING = |
aoqi@0 | 168 | new QName(NS_SOAP_ENCODING, "string"); |
aoqi@0 | 169 | public static final QName QNAME_TYPE_NORMALIZED_STRING = |
aoqi@0 | 170 | new QName(NS_SOAP_ENCODING, "normalizedString"); |
aoqi@0 | 171 | public static final QName QNAME_TYPE_TOKEN = |
aoqi@0 | 172 | new QName(NS_SOAP_ENCODING, "token"); |
aoqi@0 | 173 | public static final QName QNAME_TYPE_BYTE = |
aoqi@0 | 174 | new QName(NS_SOAP_ENCODING, "byte"); |
aoqi@0 | 175 | public static final QName QNAME_TYPE_UNSIGNED_BYTE = |
aoqi@0 | 176 | new QName(NS_SOAP_ENCODING, "unsignedByte"); |
aoqi@0 | 177 | public static final QName QNAME_TYPE_BASE64_BINARY = |
aoqi@0 | 178 | new QName(NS_SOAP_ENCODING, "base64Binary"); |
aoqi@0 | 179 | public static final QName QNAME_TYPE_HEX_BINARY = |
aoqi@0 | 180 | new QName(NS_SOAP_ENCODING, "hexBinary"); |
aoqi@0 | 181 | public static final QName QNAME_TYPE_INTEGER = |
aoqi@0 | 182 | new QName(NS_SOAP_ENCODING, "integer"); |
aoqi@0 | 183 | public static final QName QNAME_TYPE_POSITIVE_INTEGER = |
aoqi@0 | 184 | new QName(NS_SOAP_ENCODING, "positiveInteger"); |
aoqi@0 | 185 | public static final QName QNAME_TYPE_NEGATIVE_INTEGER = |
aoqi@0 | 186 | new QName(NS_SOAP_ENCODING, "negativeInteger"); |
aoqi@0 | 187 | public static final QName QNAME_TYPE_NON_NEGATIVE_INTEGER = |
aoqi@0 | 188 | new QName(NS_SOAP_ENCODING, "nonNegativeInteger"); |
aoqi@0 | 189 | public static final QName QNAME_TYPE_NON_POSITIVE_INTEGER = |
aoqi@0 | 190 | new QName(NS_SOAP_ENCODING, "nonPositiveInteger"); |
aoqi@0 | 191 | public static final QName QNAME_TYPE_INT = |
aoqi@0 | 192 | new QName(NS_SOAP_ENCODING, "int"); |
aoqi@0 | 193 | public static final QName QNAME_TYPE_UNSIGNED_INT = |
aoqi@0 | 194 | new QName(NS_SOAP_ENCODING, "unsignedInt"); |
aoqi@0 | 195 | public static final QName QNAME_TYPE_LONG = |
aoqi@0 | 196 | new QName(NS_SOAP_ENCODING, "long"); |
aoqi@0 | 197 | public static final QName QNAME_TYPE_UNSIGNED_LONG = |
aoqi@0 | 198 | new QName(NS_SOAP_ENCODING, "unsignedLong"); |
aoqi@0 | 199 | public static final QName QNAME_TYPE_SHORT = |
aoqi@0 | 200 | new QName(NS_SOAP_ENCODING, "short"); |
aoqi@0 | 201 | public static final QName QNAME_TYPE_UNSIGNED_SHORT = |
aoqi@0 | 202 | new QName(NS_SOAP_ENCODING, "unsignedShort"); |
aoqi@0 | 203 | public static final QName QNAME_TYPE_DECIMAL = |
aoqi@0 | 204 | new QName(NS_SOAP_ENCODING, "decimal"); |
aoqi@0 | 205 | public static final QName QNAME_TYPE_FLOAT = |
aoqi@0 | 206 | new QName(NS_SOAP_ENCODING, "float"); |
aoqi@0 | 207 | public static final QName QNAME_TYPE_DOUBLE = |
aoqi@0 | 208 | new QName(NS_SOAP_ENCODING, "double"); |
aoqi@0 | 209 | public static final QName QNAME_TYPE_BOOLEAN = |
aoqi@0 | 210 | new QName(NS_SOAP_ENCODING, "boolean"); |
aoqi@0 | 211 | public static final QName QNAME_TYPE_TIME = |
aoqi@0 | 212 | new QName(NS_SOAP_ENCODING, "time"); |
aoqi@0 | 213 | public static final QName QNAME_TYPE_DATE_TIME = |
aoqi@0 | 214 | new QName(NS_SOAP_ENCODING, "dateTime"); |
aoqi@0 | 215 | public static final QName QNAME_TYPE_DURATION = |
aoqi@0 | 216 | new QName(NS_SOAP_ENCODING, "duration"); |
aoqi@0 | 217 | public static final QName QNAME_TYPE_DATE = |
aoqi@0 | 218 | new QName(NS_SOAP_ENCODING, "date"); |
aoqi@0 | 219 | public static final QName QNAME_TYPE_G_MONTH = |
aoqi@0 | 220 | new QName(NS_SOAP_ENCODING, "gMonth"); |
aoqi@0 | 221 | public static final QName QNAME_TYPE_G_YEAR = |
aoqi@0 | 222 | new QName(NS_SOAP_ENCODING, "gYear"); |
aoqi@0 | 223 | public static final QName QNAME_TYPE_G_YEAR_MONTH = |
aoqi@0 | 224 | new QName(NS_SOAP_ENCODING, "gYearMonth"); |
aoqi@0 | 225 | public static final QName QNAME_TYPE_G_DAY = |
aoqi@0 | 226 | new QName(NS_SOAP_ENCODING, "gDay"); |
aoqi@0 | 227 | public static final QName QNAME_TYPE_G_MONTH_DAY = |
aoqi@0 | 228 | new QName(NS_SOAP_ENCODING, "gMonthDay"); |
aoqi@0 | 229 | public static final QName QNAME_TYPE_NAME = |
aoqi@0 | 230 | new QName(NS_SOAP_ENCODING, "Name"); |
aoqi@0 | 231 | public static final QName QNAME_TYPE_QNAME = |
aoqi@0 | 232 | new QName(NS_SOAP_ENCODING, "QName"); |
aoqi@0 | 233 | public static final QName QNAME_TYPE_NCNAME = |
aoqi@0 | 234 | new QName(NS_SOAP_ENCODING, "NCName"); |
aoqi@0 | 235 | public static final QName QNAME_TYPE_ANY_URI = |
aoqi@0 | 236 | new QName(NS_SOAP_ENCODING, "anyURI"); |
aoqi@0 | 237 | public static final QName QNAME_TYPE_ID = new QName(NS_SOAP_ENCODING, "ID"); |
aoqi@0 | 238 | public static final QName QNAME_TYPE_IDREF = |
aoqi@0 | 239 | new QName(NS_SOAP_ENCODING, "IDREF"); |
aoqi@0 | 240 | public static final QName QNAME_TYPE_IDREFS = |
aoqi@0 | 241 | new QName(NS_SOAP_ENCODING, "IDREFS"); |
aoqi@0 | 242 | public static final QName QNAME_TYPE_ENTITY = |
aoqi@0 | 243 | new QName(NS_SOAP_ENCODING, "ENTITY"); |
aoqi@0 | 244 | public static final QName QNAME_TYPE_ENTITIES = |
aoqi@0 | 245 | new QName(NS_SOAP_ENCODING, "ENTITIES"); |
aoqi@0 | 246 | public static final QName QNAME_TYPE_NOTATION = |
aoqi@0 | 247 | new QName(NS_SOAP_ENCODING, "NOTATION"); |
aoqi@0 | 248 | public static final QName QNAME_TYPE_NMTOKEN = |
aoqi@0 | 249 | new QName(NS_SOAP_ENCODING, "NMTOKEN"); |
aoqi@0 | 250 | public static final QName QNAME_TYPE_NMTOKENS = |
aoqi@0 | 251 | new QName(NS_SOAP_ENCODING, "NMTOKENS"); |
aoqi@0 | 252 | public static final QName QNAME_TYPE_LANGUAGE = |
aoqi@0 | 253 | new QName(NS_SOAP_ENCODING, "LANGUAGE"); |
aoqi@0 | 254 | |
aoqi@0 | 255 | // SOAP attributes with non-colonized names |
aoqi@0 | 256 | public static final QName QNAME_ATTR_ID = new QName("", "id"); |
aoqi@0 | 257 | public static final QName QNAME_ATTR_HREF = new QName("", "href"); |
aoqi@0 | 258 | |
aoqi@0 | 259 | } |