1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/share/jaxws_classes/com/sun/tools/internal/ws/wsdl/document/soap/SOAPConstants.java Wed Apr 27 01:27:09 2016 +0800 1.3 @@ -0,0 +1,259 @@ 1.4 +/* 1.5 + * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. 1.6 + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.7 + * 1.8 + * This code is free software; you can redistribute it and/or modify it 1.9 + * under the terms of the GNU General Public License version 2 only, as 1.10 + * published by the Free Software Foundation. Oracle designates this 1.11 + * particular file as subject to the "Classpath" exception as provided 1.12 + * by Oracle in the LICENSE file that accompanied this code. 1.13 + * 1.14 + * This code is distributed in the hope that it will be useful, but WITHOUT 1.15 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1.16 + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1.17 + * version 2 for more details (a copy is included in the LICENSE file that 1.18 + * accompanied this code). 1.19 + * 1.20 + * You should have received a copy of the GNU General Public License version 1.21 + * 2 along with this work; if not, write to the Free Software Foundation, 1.22 + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1.23 + * 1.24 + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 1.25 + * or visit www.oracle.com if you need additional information or have any 1.26 + * questions. 1.27 + */ 1.28 + 1.29 +package com.sun.tools.internal.ws.wsdl.document.soap; 1.30 + 1.31 +import com.sun.xml.internal.ws.encoding.soap.streaming.SOAPNamespaceConstants; 1.32 + 1.33 +import javax.xml.namespace.QName; 1.34 + 1.35 +/** 1.36 + * Interface defining SOAP-related constants. 1.37 + * 1.38 + * @author WS Development Team 1.39 + */ 1.40 +public interface SOAPConstants { 1.41 + 1.42 + // namespace URIs 1.43 + public static final String URI_ENVELOPE = SOAPNamespaceConstants.ENVELOPE; 1.44 + public static final String NS_WSDL_SOAP = 1.45 + "http://schemas.xmlsoap.org/wsdl/soap/"; 1.46 + public static final String NS_SOAP_ENCODING = "http://schemas.xmlsoap.org/soap/encoding/"; 1.47 + 1.48 + // other URIs 1.49 + public final String URI_SOAP_TRANSPORT_HTTP = 1.50 + "http://schemas.xmlsoap.org/soap/http"; 1.51 + 1.52 + // QNames 1.53 + public static final QName QNAME_ADDRESS = 1.54 + new QName(NS_WSDL_SOAP, "address"); 1.55 + public static final QName QNAME_BINDING = 1.56 + new QName(NS_WSDL_SOAP, "binding"); 1.57 + public static final QName QNAME_BODY = new QName(NS_WSDL_SOAP, "body"); 1.58 + public static final QName QNAME_FAULT = new QName(NS_WSDL_SOAP, "fault"); 1.59 + public static final QName QNAME_HEADER = new QName(NS_WSDL_SOAP, "header"); 1.60 + public static final QName QNAME_HEADERFAULT = 1.61 + new QName(NS_WSDL_SOAP, "headerfault"); 1.62 + public static final QName QNAME_OPERATION = 1.63 + new QName(NS_WSDL_SOAP, "operation"); 1.64 + public static final QName QNAME_MUSTUNDERSTAND = 1.65 + new QName(URI_ENVELOPE, "mustUnderstand"); 1.66 + 1.67 + 1.68 + // SOAP encoding QNames 1.69 + public static final QName QNAME_TYPE_ARRAY = 1.70 + new QName(NS_SOAP_ENCODING, "Array"); 1.71 + public static final QName QNAME_ATTR_GROUP_COMMON_ATTRIBUTES = 1.72 + new QName(NS_SOAP_ENCODING, "commonAttributes"); 1.73 + public static final QName QNAME_ATTR_ARRAY_TYPE = 1.74 + new QName(NS_SOAP_ENCODING, "arrayType"); 1.75 + public static final QName QNAME_ATTR_OFFSET = 1.76 + new QName(NS_SOAP_ENCODING, "offset"); 1.77 + public static final QName QNAME_ATTR_POSITION = 1.78 + new QName(NS_SOAP_ENCODING, "position"); 1.79 + 1.80 + public static final QName QNAME_TYPE_BASE64 = 1.81 + new QName(NS_SOAP_ENCODING, "base64"); 1.82 + 1.83 + public static final QName QNAME_ELEMENT_STRING = 1.84 + new QName(NS_SOAP_ENCODING, "string"); 1.85 + public static final QName QNAME_ELEMENT_NORMALIZED_STRING = 1.86 + new QName(NS_SOAP_ENCODING, "normalizedString"); 1.87 + public static final QName QNAME_ELEMENT_TOKEN = 1.88 + new QName(NS_SOAP_ENCODING, "token"); 1.89 + public static final QName QNAME_ELEMENT_BYTE = 1.90 + new QName(NS_SOAP_ENCODING, "byte"); 1.91 + public static final QName QNAME_ELEMENT_UNSIGNED_BYTE = 1.92 + new QName(NS_SOAP_ENCODING, "unsignedByte"); 1.93 + public static final QName QNAME_ELEMENT_BASE64_BINARY = 1.94 + new QName(NS_SOAP_ENCODING, "base64Binary"); 1.95 + public static final QName QNAME_ELEMENT_HEX_BINARY = 1.96 + new QName(NS_SOAP_ENCODING, "hexBinary"); 1.97 + public static final QName QNAME_ELEMENT_INTEGER = 1.98 + new QName(NS_SOAP_ENCODING, "integer"); 1.99 + public static final QName QNAME_ELEMENT_POSITIVE_INTEGER = 1.100 + new QName(NS_SOAP_ENCODING, "positiveInteger"); 1.101 + public static final QName QNAME_ELEMENT_NEGATIVE_INTEGER = 1.102 + new QName(NS_SOAP_ENCODING, "negativeInteger"); 1.103 + public static final QName QNAME_ELEMENT_NON_NEGATIVE_INTEGER = 1.104 + new QName(NS_SOAP_ENCODING, "nonNegativeInteger"); 1.105 + public static final QName QNAME_ELEMENT_NON_POSITIVE_INTEGER = 1.106 + new QName(NS_SOAP_ENCODING, "nonPositiveInteger"); 1.107 + public static final QName QNAME_ELEMENT_INT = 1.108 + new QName(NS_SOAP_ENCODING, "int"); 1.109 + public static final QName QNAME_ELEMENT_UNSIGNED_INT = 1.110 + new QName(NS_SOAP_ENCODING, "unsignedInt"); 1.111 + public static final QName QNAME_ELEMENT_LONG = 1.112 + new QName(NS_SOAP_ENCODING, "long"); 1.113 + public static final QName QNAME_ELEMENT_UNSIGNED_LONG = 1.114 + new QName(NS_SOAP_ENCODING, "unsignedLong"); 1.115 + public static final QName QNAME_ELEMENT_SHORT = 1.116 + new QName(NS_SOAP_ENCODING, "short"); 1.117 + public static final QName QNAME_ELEMENT_UNSIGNED_SHORT = 1.118 + new QName(NS_SOAP_ENCODING, "unsignedShort"); 1.119 + public static final QName QNAME_ELEMENT_DECIMAL = 1.120 + new QName(NS_SOAP_ENCODING, "decimal"); 1.121 + public static final QName QNAME_ELEMENT_FLOAT = 1.122 + new QName(NS_SOAP_ENCODING, "float"); 1.123 + public static final QName QNAME_ELEMENT_DOUBLE = 1.124 + new QName(NS_SOAP_ENCODING, "double"); 1.125 + public static final QName QNAME_ELEMENT_BOOLEAN = 1.126 + new QName(NS_SOAP_ENCODING, "boolean"); 1.127 + public static final QName QNAME_ELEMENT_TIME = 1.128 + new QName(NS_SOAP_ENCODING, "time"); 1.129 + public static final QName QNAME_ELEMENT_DATE_TIME = 1.130 + new QName(NS_SOAP_ENCODING, "dateTime"); 1.131 + public static final QName QNAME_ELEMENT_DURATION = 1.132 + new QName(NS_SOAP_ENCODING, "duration"); 1.133 + public static final QName QNAME_ELEMENT_DATE = 1.134 + new QName(NS_SOAP_ENCODING, "date"); 1.135 + public static final QName QNAME_ELEMENT_G_MONTH = 1.136 + new QName(NS_SOAP_ENCODING, "gMonth"); 1.137 + public static final QName QNAME_ELEMENT_G_YEAR = 1.138 + new QName(NS_SOAP_ENCODING, "gYear"); 1.139 + public static final QName QNAME_ELEMENT_G_YEAR_MONTH = 1.140 + new QName(NS_SOAP_ENCODING, "gYearMonth"); 1.141 + public static final QName QNAME_ELEMENT_G_DAY = 1.142 + new QName(NS_SOAP_ENCODING, "gDay"); 1.143 + public static final QName QNAME_ELEMENT_G_MONTH_DAY = 1.144 + new QName(NS_SOAP_ENCODING, "gMonthDay"); 1.145 + public static final QName QNAME_ELEMENT_NAME = 1.146 + new QName(NS_SOAP_ENCODING, "Name"); 1.147 + public static final QName QNAME_ELEMENT_QNAME = 1.148 + new QName(NS_SOAP_ENCODING, "QName"); 1.149 + public static final QName QNAME_ELEMENT_NCNAME = 1.150 + new QName(NS_SOAP_ENCODING, "NCName"); 1.151 + public static final QName QNAME_ELEMENT_ANY_URI = 1.152 + new QName(NS_SOAP_ENCODING, "anyURI"); 1.153 + public static final QName QNAME_ELEMENT_ID = 1.154 + new QName(NS_SOAP_ENCODING, "ID"); 1.155 + public static final QName QNAME_ELEMENT_IDREF = 1.156 + new QName(NS_SOAP_ENCODING, "IDREF"); 1.157 + public static final QName QNAME_ELEMENT_IDREFS = 1.158 + new QName(NS_SOAP_ENCODING, "IDREFS"); 1.159 + public static final QName QNAME_ELEMENT_ENTITY = 1.160 + new QName(NS_SOAP_ENCODING, "ENTITY"); 1.161 + public static final QName QNAME_ELEMENT_ENTITIES = 1.162 + new QName(NS_SOAP_ENCODING, "ENTITIES"); 1.163 + public static final QName QNAME_ELEMENT_NOTATION = 1.164 + new QName(NS_SOAP_ENCODING, "NOTATION"); 1.165 + public static final QName QNAME_ELEMENT_NMTOKEN = 1.166 + new QName(NS_SOAP_ENCODING, "NMTOKEN"); 1.167 + public static final QName QNAME_ELEMENT_NMTOKENS = 1.168 + new QName(NS_SOAP_ENCODING, "NMTOKENS"); 1.169 + 1.170 + public static final QName QNAME_TYPE_STRING = 1.171 + new QName(NS_SOAP_ENCODING, "string"); 1.172 + public static final QName QNAME_TYPE_NORMALIZED_STRING = 1.173 + new QName(NS_SOAP_ENCODING, "normalizedString"); 1.174 + public static final QName QNAME_TYPE_TOKEN = 1.175 + new QName(NS_SOAP_ENCODING, "token"); 1.176 + public static final QName QNAME_TYPE_BYTE = 1.177 + new QName(NS_SOAP_ENCODING, "byte"); 1.178 + public static final QName QNAME_TYPE_UNSIGNED_BYTE = 1.179 + new QName(NS_SOAP_ENCODING, "unsignedByte"); 1.180 + public static final QName QNAME_TYPE_BASE64_BINARY = 1.181 + new QName(NS_SOAP_ENCODING, "base64Binary"); 1.182 + public static final QName QNAME_TYPE_HEX_BINARY = 1.183 + new QName(NS_SOAP_ENCODING, "hexBinary"); 1.184 + public static final QName QNAME_TYPE_INTEGER = 1.185 + new QName(NS_SOAP_ENCODING, "integer"); 1.186 + public static final QName QNAME_TYPE_POSITIVE_INTEGER = 1.187 + new QName(NS_SOAP_ENCODING, "positiveInteger"); 1.188 + public static final QName QNAME_TYPE_NEGATIVE_INTEGER = 1.189 + new QName(NS_SOAP_ENCODING, "negativeInteger"); 1.190 + public static final QName QNAME_TYPE_NON_NEGATIVE_INTEGER = 1.191 + new QName(NS_SOAP_ENCODING, "nonNegativeInteger"); 1.192 + public static final QName QNAME_TYPE_NON_POSITIVE_INTEGER = 1.193 + new QName(NS_SOAP_ENCODING, "nonPositiveInteger"); 1.194 + public static final QName QNAME_TYPE_INT = 1.195 + new QName(NS_SOAP_ENCODING, "int"); 1.196 + public static final QName QNAME_TYPE_UNSIGNED_INT = 1.197 + new QName(NS_SOAP_ENCODING, "unsignedInt"); 1.198 + public static final QName QNAME_TYPE_LONG = 1.199 + new QName(NS_SOAP_ENCODING, "long"); 1.200 + public static final QName QNAME_TYPE_UNSIGNED_LONG = 1.201 + new QName(NS_SOAP_ENCODING, "unsignedLong"); 1.202 + public static final QName QNAME_TYPE_SHORT = 1.203 + new QName(NS_SOAP_ENCODING, "short"); 1.204 + public static final QName QNAME_TYPE_UNSIGNED_SHORT = 1.205 + new QName(NS_SOAP_ENCODING, "unsignedShort"); 1.206 + public static final QName QNAME_TYPE_DECIMAL = 1.207 + new QName(NS_SOAP_ENCODING, "decimal"); 1.208 + public static final QName QNAME_TYPE_FLOAT = 1.209 + new QName(NS_SOAP_ENCODING, "float"); 1.210 + public static final QName QNAME_TYPE_DOUBLE = 1.211 + new QName(NS_SOAP_ENCODING, "double"); 1.212 + public static final QName QNAME_TYPE_BOOLEAN = 1.213 + new QName(NS_SOAP_ENCODING, "boolean"); 1.214 + public static final QName QNAME_TYPE_TIME = 1.215 + new QName(NS_SOAP_ENCODING, "time"); 1.216 + public static final QName QNAME_TYPE_DATE_TIME = 1.217 + new QName(NS_SOAP_ENCODING, "dateTime"); 1.218 + public static final QName QNAME_TYPE_DURATION = 1.219 + new QName(NS_SOAP_ENCODING, "duration"); 1.220 + public static final QName QNAME_TYPE_DATE = 1.221 + new QName(NS_SOAP_ENCODING, "date"); 1.222 + public static final QName QNAME_TYPE_G_MONTH = 1.223 + new QName(NS_SOAP_ENCODING, "gMonth"); 1.224 + public static final QName QNAME_TYPE_G_YEAR = 1.225 + new QName(NS_SOAP_ENCODING, "gYear"); 1.226 + public static final QName QNAME_TYPE_G_YEAR_MONTH = 1.227 + new QName(NS_SOAP_ENCODING, "gYearMonth"); 1.228 + public static final QName QNAME_TYPE_G_DAY = 1.229 + new QName(NS_SOAP_ENCODING, "gDay"); 1.230 + public static final QName QNAME_TYPE_G_MONTH_DAY = 1.231 + new QName(NS_SOAP_ENCODING, "gMonthDay"); 1.232 + public static final QName QNAME_TYPE_NAME = 1.233 + new QName(NS_SOAP_ENCODING, "Name"); 1.234 + public static final QName QNAME_TYPE_QNAME = 1.235 + new QName(NS_SOAP_ENCODING, "QName"); 1.236 + public static final QName QNAME_TYPE_NCNAME = 1.237 + new QName(NS_SOAP_ENCODING, "NCName"); 1.238 + public static final QName QNAME_TYPE_ANY_URI = 1.239 + new QName(NS_SOAP_ENCODING, "anyURI"); 1.240 + public static final QName QNAME_TYPE_ID = new QName(NS_SOAP_ENCODING, "ID"); 1.241 + public static final QName QNAME_TYPE_IDREF = 1.242 + new QName(NS_SOAP_ENCODING, "IDREF"); 1.243 + public static final QName QNAME_TYPE_IDREFS = 1.244 + new QName(NS_SOAP_ENCODING, "IDREFS"); 1.245 + public static final QName QNAME_TYPE_ENTITY = 1.246 + new QName(NS_SOAP_ENCODING, "ENTITY"); 1.247 + public static final QName QNAME_TYPE_ENTITIES = 1.248 + new QName(NS_SOAP_ENCODING, "ENTITIES"); 1.249 + public static final QName QNAME_TYPE_NOTATION = 1.250 + new QName(NS_SOAP_ENCODING, "NOTATION"); 1.251 + public static final QName QNAME_TYPE_NMTOKEN = 1.252 + new QName(NS_SOAP_ENCODING, "NMTOKEN"); 1.253 + public static final QName QNAME_TYPE_NMTOKENS = 1.254 + new QName(NS_SOAP_ENCODING, "NMTOKENS"); 1.255 + public static final QName QNAME_TYPE_LANGUAGE = 1.256 + new QName(NS_SOAP_ENCODING, "LANGUAGE"); 1.257 + 1.258 + // SOAP attributes with non-colonized names 1.259 + public static final QName QNAME_ATTR_ID = new QName("", "id"); 1.260 + public static final QName QNAME_ATTR_HREF = new QName("", "href"); 1.261 + 1.262 +}