public enum SOAPVersion extends Enum<SOAPVersion>
This class defines various constants for SOAP 1.1 and SOAP 1.2, and also defines convenience methods to simplify the processing of multiple SOAP versions.
This constant alows you to do:
SOAPVersion version = ...; version.someOp(...);As opposed to:
if(binding is SOAP11) { doSomeOp11(...); } else { doSomeOp12(...); }
Modifier and Type | Field and Description |
---|---|
String |
contentType
Content-type.
|
QName |
faultCodeClient
"{nsUri}Client" or "{nsUri}Sender"
|
QName |
faultCodeMustUnderstand
SOAP MustUnderstand FaultCode for this SOAP version
|
QName |
faultCodeServer
"{nsUri}Server" or "{nsUri}Receiver"
|
String |
httpBindingId
Binding ID for SOAP/HTTP binding of this SOAP version.
|
String |
implicitRole
If the actor/role attribute is absent, this SOAP version assumes this value.
|
Set<String> |
implicitRoleSet
Singleton set that contains
implicitRole . |
String |
nsUri
SOAP envelope namespace URI.
|
Set<String> |
requiredRoles
This represents the roles required to be assumed by SOAP binding implementation.
|
String |
roleAttributeName
"role" (SOAP 1.2) or "actor" (SOAP 1.1)
|
javax.xml.soap.MessageFactory |
saajMessageFactory
Deprecated.
|
javax.xml.soap.SOAPFactory |
saajSoapFactory
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static SOAPVersion |
from(org.jvnet.ws.EnvelopeStyle.Style style) |
static SOAPVersion |
from(org.jvnet.ws.EnvelopeStyleFeature f) |
static SOAPVersion |
fromHttpBinding(String binding)
Returns
SOAPVersion whose httpBindingId equals to
the given string. |
static SOAPVersion |
fromNsUri(String nsUri)
Returns
SOAPVersion whose nsUri equals to
the given string. |
javax.xml.soap.MessageFactory |
getMessageFactory() |
javax.xml.soap.SOAPFactory |
getSOAPFactory() |
org.jvnet.ws.EnvelopeStyleFeature |
toFeature() |
String |
toString() |
static SOAPVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SOAPVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SOAPVersion SOAP_11
public static final SOAPVersion SOAP_12
public final String httpBindingId
Either SOAPBinding.SOAP11HTTP_BINDING
or
SOAPBinding.SOAP12HTTP_BINDING
public final String nsUri
public final String contentType
public final QName faultCodeMustUnderstand
public final javax.xml.soap.MessageFactory saajMessageFactory
MessageFactory
for this SOAP version.public final javax.xml.soap.SOAPFactory saajSoapFactory
SOAPFactory
for this SOAP version.public final String implicitRole
public final Set<String> implicitRoleSet
implicitRole
.public final Set<String> requiredRoles
public final String roleAttributeName
public final QName faultCodeClient
public final QName faultCodeServer
public static SOAPVersion[] values()
for (SOAPVersion c : SOAPVersion.values()) System.out.println(c);
public static SOAPVersion valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic javax.xml.soap.SOAPFactory getSOAPFactory()
public javax.xml.soap.MessageFactory getMessageFactory()
public String toString()
toString
in class Enum<SOAPVersion>
public static SOAPVersion fromHttpBinding(String binding)
SOAPVersion
whose httpBindingId
equals to
the given string.
This method does not perform input string validation.binding
- for historical reason, we treat null as SOAP_11
,
but you really shouldn't be passing null.public static SOAPVersion fromNsUri(String nsUri)
SOAPVersion
whose nsUri
equals to
the given string.
This method does not perform input string validation.nsUri
- must not be null.public static SOAPVersion from(org.jvnet.ws.EnvelopeStyleFeature f)
public static SOAPVersion from(org.jvnet.ws.EnvelopeStyle.Style style)
public org.jvnet.ws.EnvelopeStyleFeature toFeature()
Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.