src/share/jaxws_classes/javax/xml/soap/SOAPConstants.java

Tue, 06 Mar 2012 16:09:35 -0800

author
ohair
date
Tue, 06 Mar 2012 16:09:35 -0800
changeset 286
f50545b5e2f1
child 368
0989ad8c0860
permissions
-rw-r--r--

7150322: Stop using drop source bundles in jaxws
Reviewed-by: darcy, ohrstrom

ohair@286 1 /*
ohair@286 2 * Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.
ohair@286 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
ohair@286 4 *
ohair@286 5 * This code is free software; you can redistribute it and/or modify it
ohair@286 6 * under the terms of the GNU General Public License version 2 only, as
ohair@286 7 * published by the Free Software Foundation. Oracle designates this
ohair@286 8 * particular file as subject to the "Classpath" exception as provided
ohair@286 9 * by Oracle in the LICENSE file that accompanied this code.
ohair@286 10 *
ohair@286 11 * This code is distributed in the hope that it will be useful, but WITHOUT
ohair@286 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ohair@286 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
ohair@286 14 * version 2 for more details (a copy is included in the LICENSE file that
ohair@286 15 * accompanied this code).
ohair@286 16 *
ohair@286 17 * You should have received a copy of the GNU General Public License version
ohair@286 18 * 2 along with this work; if not, write to the Free Software Foundation,
ohair@286 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
ohair@286 20 *
ohair@286 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ohair@286 22 * or visit www.oracle.com if you need additional information or have any
ohair@286 23 * questions.
ohair@286 24 */
ohair@286 25
ohair@286 26 package javax.xml.soap;
ohair@286 27
ohair@286 28 import javax.xml.namespace.QName;
ohair@286 29
ohair@286 30 /**
ohair@286 31 * The definition of constants pertaining to the SOAP protocol.
ohair@286 32 */
ohair@286 33 public interface SOAPConstants {
ohair@286 34 /**
ohair@286 35 * Used to create <code>MessageFactory</code> instances that create
ohair@286 36 * <code>SOAPMessages</code> whose concrete type is based on the
ohair@286 37 * <code>Content-Type</code> MIME header passed to the
ohair@286 38 * <code>createMessage</code> method. If no <code>Content-Type</code>
ohair@286 39 * header is passed then the <code>createMessage</code> may throw an
ohair@286 40 * <code>IllegalArgumentException</code> or, in the case of the no
ohair@286 41 * argument version of <code>createMessage</code>, an
ohair@286 42 * <code>UnsupportedOperationException</code>.
ohair@286 43 *
ohair@286 44 * @since SAAJ 1.3
ohair@286 45 */
ohair@286 46 public static final String DYNAMIC_SOAP_PROTOCOL = "Dynamic Protocol";
ohair@286 47
ohair@286 48 /**
ohair@286 49 * Used to create <code>MessageFactory</code> instances that create
ohair@286 50 * <code>SOAPMessages</code> whose behavior supports the SOAP 1.1 specification.
ohair@286 51 *
ohair@286 52 * @since SAAJ 1.3
ohair@286 53 */
ohair@286 54 public static final String SOAP_1_1_PROTOCOL = "SOAP 1.1 Protocol";
ohair@286 55
ohair@286 56 /**
ohair@286 57 * Used to create <code>MessageFactory</code> instances that create
ohair@286 58 * <code>SOAPMessages</code> whose behavior supports the SOAP 1.2
ohair@286 59 * specification
ohair@286 60 *
ohair@286 61 * @since SAAJ 1.3
ohair@286 62 */
ohair@286 63 public static final String SOAP_1_2_PROTOCOL = "SOAP 1.2 Protocol";
ohair@286 64
ohair@286 65 /**
ohair@286 66 * The default protocol: SOAP 1.1 for backwards compatibility.
ohair@286 67 *
ohair@286 68 * @since SAAJ 1.3
ohair@286 69 */
ohair@286 70 public static final String DEFAULT_SOAP_PROTOCOL = SOAP_1_1_PROTOCOL;
ohair@286 71
ohair@286 72 /**
ohair@286 73 * The namespace identifier for the SOAP 1.1 envelope.
ohair@286 74 * @since SAAJ 1.3
ohair@286 75 */
ohair@286 76 public static final String
ohair@286 77 URI_NS_SOAP_1_1_ENVELOPE = "http://schemas.xmlsoap.org/soap/envelope/";
ohair@286 78 /**
ohair@286 79 * The namespace identifier for the SOAP 1.2 envelope.
ohair@286 80 * @since SAAJ 1.3
ohair@286 81 */
ohair@286 82 public static final String
ohair@286 83 URI_NS_SOAP_1_2_ENVELOPE = "http://www.w3.org/2003/05/soap-envelope";
ohair@286 84
ohair@286 85 /**
ohair@286 86 * The namespace identifier for the SOAP 1.1 envelope, All SOAPElements in this
ohair@286 87 * namespace are defined by the SOAP 1.1 specification.
ohair@286 88 */
ohair@286 89 public static final String
ohair@286 90 URI_NS_SOAP_ENVELOPE = URI_NS_SOAP_1_1_ENVELOPE;
ohair@286 91
ohair@286 92 /**
ohair@286 93 * The namespace identifier for the SOAP 1.1 encoding.
ohair@286 94 * An attribute named <code>encodingStyle</code> in the
ohair@286 95 * <code>URI_NS_SOAP_ENVELOPE</code> namespace and set to the value
ohair@286 96 * <code>URI_NS_SOAP_ENCODING</code> can be added to an element to indicate
ohair@286 97 * that it is encoded using the rules in section 5 of the SOAP 1.1
ohair@286 98 * specification.
ohair@286 99 */
ohair@286 100 public static final String
ohair@286 101 URI_NS_SOAP_ENCODING = "http://schemas.xmlsoap.org/soap/encoding/";
ohair@286 102
ohair@286 103 /**
ohair@286 104 * The namespace identifier for the SOAP 1.2 encoding.
ohair@286 105 * @since SAAJ 1.3
ohair@286 106 */
ohair@286 107 public static final String
ohair@286 108 URI_NS_SOAP_1_2_ENCODING = "http://www.w3.org/2003/05/soap-encoding";
ohair@286 109
ohair@286 110 /**
ohair@286 111 * The media type of the <code>Content-Type</code> MIME header in SOAP 1.1.
ohair@286 112 * @since SAAJ 1.3
ohair@286 113 */
ohair@286 114 public static final String
ohair@286 115 SOAP_1_1_CONTENT_TYPE = "text/xml";
ohair@286 116
ohair@286 117 /**
ohair@286 118 * The media type of the <code>Content-Type</code> MIME header in SOAP 1.2.
ohair@286 119 * @since SAAJ 1.3
ohair@286 120 */
ohair@286 121 public static final String
ohair@286 122 SOAP_1_2_CONTENT_TYPE = "application/soap+xml";
ohair@286 123
ohair@286 124 /**
ohair@286 125 * The URI identifying the next application processing a SOAP request as the intended
ohair@286 126 * actor for a SOAP 1.1 header entry (see section 4.2.2 of the SOAP 1.1 specification).
ohair@286 127 * <p>
ohair@286 128 * This value can be passed to
ohair@286 129 * {@link SOAPHeader#examineMustUnderstandHeaderElements(String)},
ohair@286 130 * {@link SOAPHeader#examineHeaderElements(String)} and
ohair@286 131 * {@link SOAPHeader#extractHeaderElements(String)}
ohair@286 132 */
ohair@286 133 public static final String
ohair@286 134 URI_SOAP_ACTOR_NEXT = "http://schemas.xmlsoap.org/soap/actor/next";
ohair@286 135
ohair@286 136 /**
ohair@286 137 * The URI identifying the next application processing a SOAP request as the intended
ohair@286 138 * role for a SOAP 1.2 header entry (see section 2.2 of part 1 of the SOAP 1.2
ohair@286 139 * specification).
ohair@286 140 * @since SAAJ 1.3
ohair@286 141 */
ohair@286 142 public static final String
ohair@286 143 URI_SOAP_1_2_ROLE_NEXT = URI_NS_SOAP_1_2_ENVELOPE + "/role/next";
ohair@286 144
ohair@286 145 /**
ohair@286 146 * The URI specifying the role None in SOAP 1.2.
ohair@286 147 * @since SAAJ 1.3
ohair@286 148 */
ohair@286 149 public static final String
ohair@286 150 URI_SOAP_1_2_ROLE_NONE = URI_NS_SOAP_1_2_ENVELOPE + "/role/none";
ohair@286 151
ohair@286 152 /**
ohair@286 153 * The URI identifying the ultimate receiver of the SOAP 1.2 message.
ohair@286 154 * @since SAAJ 1.3
ohair@286 155 */
ohair@286 156 public static final String
ohair@286 157 URI_SOAP_1_2_ROLE_ULTIMATE_RECEIVER =
ohair@286 158 URI_NS_SOAP_1_2_ENVELOPE + "/role/ultimateReceiver";
ohair@286 159
ohair@286 160 /**
ohair@286 161 * The default namespace prefix for http://www.w3.org/2003/05/soap-envelope
ohair@286 162 * @since SAAJ 1.3
ohair@286 163 */
ohair@286 164 public static final String SOAP_ENV_PREFIX = "env";
ohair@286 165
ohair@286 166 /**
ohair@286 167 * SOAP 1.2 VersionMismatch Fault
ohair@286 168 * @since SAAJ 1.3
ohair@286 169 */
ohair@286 170 public static final QName SOAP_VERSIONMISMATCH_FAULT =
ohair@286 171 new QName(URI_NS_SOAP_1_2_ENVELOPE, "VersionMismatch", SOAP_ENV_PREFIX);
ohair@286 172
ohair@286 173 /**
ohair@286 174 * SOAP 1.2 MustUnderstand Fault
ohair@286 175 * @since SAAJ 1.3
ohair@286 176 */
ohair@286 177 public static final QName SOAP_MUSTUNDERSTAND_FAULT =
ohair@286 178 new QName(URI_NS_SOAP_1_2_ENVELOPE, "MustUnderstand", SOAP_ENV_PREFIX);
ohair@286 179
ohair@286 180 /**
ohair@286 181 * SOAP 1.2 DataEncodingUnknown Fault
ohair@286 182 * @since SAAJ 1.3
ohair@286 183 */
ohair@286 184 public static final QName SOAP_DATAENCODINGUNKNOWN_FAULT =
ohair@286 185 new QName(URI_NS_SOAP_1_2_ENVELOPE, "DataEncodingUnknown", SOAP_ENV_PREFIX);
ohair@286 186
ohair@286 187 /**
ohair@286 188 * SOAP 1.2 Sender Fault
ohair@286 189 * @since SAAJ 1.3
ohair@286 190 */
ohair@286 191 public static final QName SOAP_SENDER_FAULT =
ohair@286 192 new QName(URI_NS_SOAP_1_2_ENVELOPE, "Sender", SOAP_ENV_PREFIX);
ohair@286 193
ohair@286 194 /**
ohair@286 195 * SOAP 1.2 Receiver Fault
ohair@286 196 * @since SAAJ 1.3
ohair@286 197 */
ohair@286 198 public static final QName SOAP_RECEIVER_FAULT =
ohair@286 199 new QName(URI_NS_SOAP_1_2_ENVELOPE, "Receiver", SOAP_ENV_PREFIX);
ohair@286 200
ohair@286 201 }

mercurial