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