SOAPConstants.java revision 325
0N/A/*
1694N/A * Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
0N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
0N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
1472N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1472N/A *
1472N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
0N/A * or visit www.oracle.com if you need additional information or have any
0N/A * questions.
0N/A */
0N/A
0N/Apackage javax.xml.soap;
0N/A
0N/Aimport javax.xml.namespace.QName;
0N/A
0N/A/**
91N/A * The definition of constants pertaining to the SOAP protocol.
0N/A */
0N/Apublic interface SOAPConstants {
0N/A /**
91N/A * Used to create <code>MessageFactory</code> instances that create
0N/A * <code>SOAPMessages</code> whose concrete type is based on the
0N/A * <code>Content-Type</code> MIME header passed to the
0N/A * <code>createMessage</code> method. If no <code>Content-Type</code>
0N/A * header is passed then the <code>createMessage</code> may throw an
0N/A * <code>IllegalArgumentException</code> or, in the case of the no
0N/A * argument version of <code>createMessage</code>, an
0N/A * <code>UnsupportedOperationException</code>.
1562N/A *
1562N/A * @since SAAJ 1.3
1562N/A */
0N/A public static final String DYNAMIC_SOAP_PROTOCOL = "Dynamic Protocol";
311N/A
311N/A /**
311N/A * Used to create <code>MessageFactory</code> instances that create
0N/A * <code>SOAPMessages</code> whose behavior supports the SOAP 1.1 specification.
1694N/A *
1694N/A * @since SAAJ 1.3
1694N/A */
0N/A public static final String SOAP_1_1_PROTOCOL = "SOAP 1.1 Protocol";
0N/A
0N/A /**
0N/A * Used to create <code>MessageFactory</code> instances that create
0N/A * <code>SOAPMessages</code> whose behavior supports the SOAP 1.2
0N/A * specification
0N/A *
1601N/A * @since SAAJ 1.3
0N/A */
0N/A public static final String SOAP_1_2_PROTOCOL = "SOAP 1.2 Protocol";
1601N/A
1601N/A /**
1601N/A * The default protocol: SOAP 1.1 for backwards compatibility.
1601N/A *
0N/A * @since SAAJ 1.3
0N/A */
0N/A public static final String DEFAULT_SOAP_PROTOCOL = SOAP_1_1_PROTOCOL;
1694N/A
0N/A /**
0N/A * The namespace identifier for the SOAP 1.1 envelope.
0N/A * @since SAAJ 1.3
0N/A */
0N/A public static final String
1562N/A URI_NS_SOAP_1_1_ENVELOPE = "http://schemas.xmlsoap.org/soap/envelope/";
0N/A /**
0N/A * The namespace identifier for the SOAP 1.2 envelope.
0N/A * @since SAAJ 1.3
0N/A */
0N/A public static final String
0N/A URI_NS_SOAP_1_2_ENVELOPE = "http://www.w3.org/2003/05/soap-envelope";
0N/A
1694N/A /**
1694N/A * The namespace identifier for the SOAP 1.1 envelope, All SOAPElements in this
1694N/A * namespace are defined by the SOAP 1.1 specification.
1694N/A */
1694N/A public static final String
1694N/A URI_NS_SOAP_ENVELOPE = URI_NS_SOAP_1_1_ENVELOPE;
1694N/A
0N/A /**
0N/A * The namespace identifier for the SOAP 1.1 encoding.
311N/A * An attribute named <code>encodingStyle</code> in the
311N/A * <code>URI_NS_SOAP_ENVELOPE</code> namespace and set to the value
311N/A * <code>URI_NS_SOAP_ENCODING</code> can be added to an element to indicate
311N/A * that it is encoded using the rules in section 5 of the SOAP 1.1
311N/A * specification.
311N/A */
0N/A public static final String
0N/A URI_NS_SOAP_ENCODING = "http://schemas.xmlsoap.org/soap/encoding/";
0N/A
0N/A /**
0N/A * The namespace identifier for the SOAP 1.2 encoding.
0N/A * @since SAAJ 1.3
0N/A */
1694N/A public static final String
1694N/A URI_NS_SOAP_1_2_ENCODING = "http://www.w3.org/2003/05/soap-encoding";
1694N/A
0N/A /**
0N/A * The media type of the <code>Content-Type</code> MIME header in SOAP 1.1.
0N/A * @since SAAJ 1.3
1694N/A */
public static final String
SOAP_1_1_CONTENT_TYPE = "text/xml";
/**
* The media type of the <code>Content-Type</code> MIME header in SOAP 1.2.
* @since SAAJ 1.3
*/
public static final String
SOAP_1_2_CONTENT_TYPE = "application/soap+xml";
/**
* The URI identifying the next application processing a SOAP request as the intended
* actor for a SOAP 1.1 header entry (see section 4.2.2 of the SOAP 1.1 specification).
* <p>
* This value can be passed to
* {@link SOAPHeader#examineMustUnderstandHeaderElements(String)},
* {@link SOAPHeader#examineHeaderElements(String)} and
* {@link SOAPHeader#extractHeaderElements(String)}
*/
public static final String
URI_SOAP_ACTOR_NEXT = "http://schemas.xmlsoap.org/soap/actor/next";
/**
* The URI identifying the next application processing a SOAP request as the intended
* role for a SOAP 1.2 header entry (see section 2.2 of part 1 of the SOAP 1.2
* specification).
* @since SAAJ 1.3
*/
public static final String
URI_SOAP_1_2_ROLE_NEXT = URI_NS_SOAP_1_2_ENVELOPE + "/role/next";
/**
* The URI specifying the role None in SOAP 1.2.
* @since SAAJ 1.3
*/
public static final String
URI_SOAP_1_2_ROLE_NONE = URI_NS_SOAP_1_2_ENVELOPE + "/role/none";
/**
* The URI identifying the ultimate receiver of the SOAP 1.2 message.
* @since SAAJ 1.3
*/
public static final String
URI_SOAP_1_2_ROLE_ULTIMATE_RECEIVER =
URI_NS_SOAP_1_2_ENVELOPE + "/role/ultimateReceiver";
/**
* The default namespace prefix for http://www.w3.org/2003/05/soap-envelope
* @since SAAJ 1.3
*/
public static final String SOAP_ENV_PREFIX = "env";
/**
* SOAP 1.2 VersionMismatch Fault
* @since SAAJ 1.3
*/
public static final QName SOAP_VERSIONMISMATCH_FAULT =
new QName(URI_NS_SOAP_1_2_ENVELOPE, "VersionMismatch", SOAP_ENV_PREFIX);
/**
* SOAP 1.2 MustUnderstand Fault
* @since SAAJ 1.3
*/
public static final QName SOAP_MUSTUNDERSTAND_FAULT =
new QName(URI_NS_SOAP_1_2_ENVELOPE, "MustUnderstand", SOAP_ENV_PREFIX);
/**
* SOAP 1.2 DataEncodingUnknown Fault
* @since SAAJ 1.3
*/
public static final QName SOAP_DATAENCODINGUNKNOWN_FAULT =
new QName(URI_NS_SOAP_1_2_ENVELOPE, "DataEncodingUnknown", SOAP_ENV_PREFIX);
/**
* SOAP 1.2 Sender Fault
* @since SAAJ 1.3
*/
public static final QName SOAP_SENDER_FAULT =
new QName(URI_NS_SOAP_1_2_ENVELOPE, "Sender", SOAP_ENV_PREFIX);
/**
* SOAP 1.2 Receiver Fault
* @since SAAJ 1.3
*/
public static final QName SOAP_RECEIVER_FAULT =
new QName(URI_NS_SOAP_1_2_ENVELOPE, "Receiver", SOAP_ENV_PREFIX);
}