public enum ESoapVersion extends Enum<ESoapVersion>
| Modifier and Type | Field and Description |
|---|---|
static ESoapVersion |
AS4_DEFAULT
According to spec 2.1.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBodyElementName() |
static ESoapVersion |
getFromMimeTypeOrNull(com.helger.commons.mime.IMimeType aMimeType) |
static ESoapVersion |
getFromNamespaceURIOrNull(String sNamespaceURI) |
static ESoapVersion |
getFromVersionOrDefault(String sVersion,
ESoapVersion eDefault) |
static ESoapVersion |
getFromVersionOrNull(String sVersion) |
String |
getHeaderElementName() |
com.helger.commons.mime.IMimeType |
getMimeType() |
com.helger.commons.mime.MimeType |
getMimeType(Charset aCharset)
Get the mime type of this SOAP version with the passed charset.
|
String |
getMustUnderstandValue(boolean bMustUnderstand)
Get the must understand value contained in SOAP instances of this version.
|
String |
getNamespacePrefix() |
String |
getNamespaceURI() |
String |
getVersion() |
boolean |
isAS4Default() |
static ESoapVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ESoapVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ESoapVersion SOAP_11
public static final ESoapVersion SOAP_12
public static final ESoapVersion AS4_DEFAULT
public static ESoapVersion[] values()
for (ESoapVersion c : ESoapVersion.values()) System.out.println(c);
public static ESoapVersion 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 null@Nonnull @Nonempty public String getNamespaceURI()
null
nor empty.@Nonnull @Nonempty public String getNamespacePrefix()
null
nor empty.@Nonnull public com.helger.commons.mime.IMimeType getMimeType()
null.@Nonnull @ReturnsMutableCopy public com.helger.commons.mime.MimeType getMimeType(@Nonnull Charset aCharset)
aCharset - The charset to be used. May not be null.null.@Nonnull @Nonempty public String getVersion()
null nor
empty.@Nonnull @Nonempty public String getMustUnderstandValue(boolean bMustUnderstand)
bMustUnderstand - must understand valuenull non-empty string.@Nonnull public String getHeaderElementName()
@Nonnull public String getBodyElementName()
public boolean isAS4Default()
true if this SOAP version is the AS4 default version.AS4_DEFAULT@Nullable public static ESoapVersion getFromVersionOrNull(@Nullable String sVersion)
@Nullable public static ESoapVersion getFromVersionOrDefault(@Nullable String sVersion, @Nullable ESoapVersion eDefault)
@Nullable public static ESoapVersion getFromNamespaceURIOrNull(@Nullable String sNamespaceURI)
@Nullable public static ESoapVersion getFromMimeTypeOrNull(@Nullable com.helger.commons.mime.IMimeType aMimeType)
Copyright © 2015–2020 Philip Helger. All rights reserved.