Path: blob/aarch64-shenandoah-jdk8u272-b10/jaxws/src/share/jaxws_classes/javax/xml/soap/SOAPConstants.java
38890 views
/*1* Copyright (c) 2004, 2012, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425package javax.xml.soap;2627import javax.xml.namespace.QName;2829/**30* The definition of constants pertaining to the SOAP protocol.31*/32public interface SOAPConstants {33/**34* Used to create <code>MessageFactory</code> instances that create35* <code>SOAPMessages</code> whose concrete type is based on the36* <code>Content-Type</code> MIME header passed to the37* <code>createMessage</code> method. If no <code>Content-Type</code>38* header is passed then the <code>createMessage</code> may throw an39* <code>IllegalArgumentException</code> or, in the case of the no40* argument version of <code>createMessage</code>, an41* <code>UnsupportedOperationException</code>.42*43* @since SAAJ 1.344*/45public static final String DYNAMIC_SOAP_PROTOCOL = "Dynamic Protocol";4647/**48* Used to create <code>MessageFactory</code> instances that create49* <code>SOAPMessages</code> whose behavior supports the SOAP 1.1 specification.50*51* @since SAAJ 1.352*/53public static final String SOAP_1_1_PROTOCOL = "SOAP 1.1 Protocol";5455/**56* Used to create <code>MessageFactory</code> instances that create57* <code>SOAPMessages</code> whose behavior supports the SOAP 1.258* specification59*60* @since SAAJ 1.361*/62public static final String SOAP_1_2_PROTOCOL = "SOAP 1.2 Protocol";6364/**65* The default protocol: SOAP 1.1 for backwards compatibility.66*67* @since SAAJ 1.368*/69public static final String DEFAULT_SOAP_PROTOCOL = SOAP_1_1_PROTOCOL;7071/**72* The namespace identifier for the SOAP 1.1 envelope.73* @since SAAJ 1.374*/75public static final String76URI_NS_SOAP_1_1_ENVELOPE = "http://schemas.xmlsoap.org/soap/envelope/";77/**78* The namespace identifier for the SOAP 1.2 envelope.79* @since SAAJ 1.380*/81public static final String82URI_NS_SOAP_1_2_ENVELOPE = "http://www.w3.org/2003/05/soap-envelope";8384/**85* The namespace identifier for the SOAP 1.1 envelope, All SOAPElements in this86* namespace are defined by the SOAP 1.1 specification.87*/88public static final String89URI_NS_SOAP_ENVELOPE = URI_NS_SOAP_1_1_ENVELOPE;9091/**92* The namespace identifier for the SOAP 1.1 encoding.93* An attribute named <code>encodingStyle</code> in the94* <code>URI_NS_SOAP_ENVELOPE</code> namespace and set to the value95* <code>URI_NS_SOAP_ENCODING</code> can be added to an element to indicate96* that it is encoded using the rules in section 5 of the SOAP 1.197* specification.98*/99public static final String100URI_NS_SOAP_ENCODING = "http://schemas.xmlsoap.org/soap/encoding/";101102/**103* The namespace identifier for the SOAP 1.2 encoding.104* @since SAAJ 1.3105*/106public static final String107URI_NS_SOAP_1_2_ENCODING = "http://www.w3.org/2003/05/soap-encoding";108109/**110* The media type of the <code>Content-Type</code> MIME header in SOAP 1.1.111* @since SAAJ 1.3112*/113public static final String114SOAP_1_1_CONTENT_TYPE = "text/xml";115116/**117* The media type of the <code>Content-Type</code> MIME header in SOAP 1.2.118* @since SAAJ 1.3119*/120public static final String121SOAP_1_2_CONTENT_TYPE = "application/soap+xml";122123/**124* The URI identifying the next application processing a SOAP request as the intended125* actor for a SOAP 1.1 header entry (see section 4.2.2 of the SOAP 1.1 specification).126* <p>127* This value can be passed to128* {@link SOAPHeader#examineMustUnderstandHeaderElements(String)},129* {@link SOAPHeader#examineHeaderElements(String)} and130* {@link SOAPHeader#extractHeaderElements(String)}131*/132public static final String133URI_SOAP_ACTOR_NEXT = "http://schemas.xmlsoap.org/soap/actor/next";134135/**136* The URI identifying the next application processing a SOAP request as the intended137* role for a SOAP 1.2 header entry (see section 2.2 of part 1 of the SOAP 1.2138* specification).139* @since SAAJ 1.3140*/141public static final String142URI_SOAP_1_2_ROLE_NEXT = URI_NS_SOAP_1_2_ENVELOPE + "/role/next";143144/**145* The URI specifying the role None in SOAP 1.2.146* @since SAAJ 1.3147*/148public static final String149URI_SOAP_1_2_ROLE_NONE = URI_NS_SOAP_1_2_ENVELOPE + "/role/none";150151/**152* The URI identifying the ultimate receiver of the SOAP 1.2 message.153* @since SAAJ 1.3154*/155public static final String156URI_SOAP_1_2_ROLE_ULTIMATE_RECEIVER =157URI_NS_SOAP_1_2_ENVELOPE + "/role/ultimateReceiver";158159/**160* The default namespace prefix for http://www.w3.org/2003/05/soap-envelope161* @since SAAJ 1.3162*/163public static final String SOAP_ENV_PREFIX = "env";164165/**166* SOAP 1.2 VersionMismatch Fault167* @since SAAJ 1.3168*/169public static final QName SOAP_VERSIONMISMATCH_FAULT =170new QName(URI_NS_SOAP_1_2_ENVELOPE, "VersionMismatch", SOAP_ENV_PREFIX);171172/**173* SOAP 1.2 MustUnderstand Fault174* @since SAAJ 1.3175*/176public static final QName SOAP_MUSTUNDERSTAND_FAULT =177new QName(URI_NS_SOAP_1_2_ENVELOPE, "MustUnderstand", SOAP_ENV_PREFIX);178179/**180* SOAP 1.2 DataEncodingUnknown Fault181* @since SAAJ 1.3182*/183public static final QName SOAP_DATAENCODINGUNKNOWN_FAULT =184new QName(URI_NS_SOAP_1_2_ENVELOPE, "DataEncodingUnknown", SOAP_ENV_PREFIX);185186/**187* SOAP 1.2 Sender Fault188* @since SAAJ 1.3189*/190public static final QName SOAP_SENDER_FAULT =191new QName(URI_NS_SOAP_1_2_ENVELOPE, "Sender", SOAP_ENV_PREFIX);192193/**194* SOAP 1.2 Receiver Fault195* @since SAAJ 1.3196*/197public static final QName SOAP_RECEIVER_FAULT =198new QName(URI_NS_SOAP_1_2_ENVELOPE, "Receiver", SOAP_ENV_PREFIX);199200}201202203