Package com.helger.phase4.model
Enum Class ESoapVersion
- All Implemented Interfaces:
Serializable,Comparable<ESoapVersion>,Constable
Enumeration with all known and supported SOAP versions.
- Author:
- Philip Helger
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription@NonNull Stringstatic @Nullable ESoapVersiongetFromMimeTypeOrNull(@Nullable com.helger.mime.IMimeType aMimeType) static @Nullable ESoapVersiongetFromNamespaceURIOrNull(@Nullable String sNamespaceURI) static @Nullable ESoapVersiongetFromVersionOrDefault(@Nullable String sVersion, @Nullable ESoapVersion eDefault) static @Nullable ESoapVersiongetFromVersionOrNull(@Nullable String sVersion) @NonNull String@NonNull com.helger.mime.IMimeType@NonNull com.helger.mime.MimeTypegetMimeType(@NonNull Charset aCharset) Get the mime type of this SOAP version with the passed charset.@NonNull @Nonempty StringgetMustUnderstandValue(boolean bMustUnderstand) Get the must understand value contained in SOAP instances of this version.@NonNull @Nonempty String@NonNull @Nonempty String@NonNull @Nonempty Stringbooleanstatic ESoapVersionReturns the enum constant of this class with the specified name.static ESoapVersion[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SOAP_11
-
SOAP_12
-
-
Field Details
-
AS4_DEFAULT
According to spec 2.1. Feature Set
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getNamespaceURI
- Returns:
- The namespace URI for this SOAP version. Neither
nullnor empty.
-
getNamespacePrefix
- Returns:
- The default namespace prefix to be used. Neither
nullnor empty.
-
getMimeType
public @NonNull com.helger.mime.IMimeType getMimeType()- Returns:
- The mime type of this SOAP version. Never
null.
-
getMimeType
Get the mime type of this SOAP version with the passed charset.- Parameters:
aCharset- The charset to be used. May not benull.- Returns:
- Never
null.
-
getVersion
- Returns:
- The human readable version string. Neither
nullnor empty.
-
getMustUnderstandValue
Get the must understand value contained in SOAP instances of this version.- Parameters:
bMustUnderstand- must understand value- Returns:
- A non-
nullnon-empty string.
-
getHeaderElementName
- Returns:
- The XML element local name of the SOAP header element.
-
getBodyElementName
- Returns:
- The XML element local name of the SOAP body element.
-
isAS4Default
public boolean isAS4Default()- Returns:
trueif this SOAP version is the AS4 default version.- See Also:
-
getFromVersionOrNull
-
getFromVersionOrDefault
public static @Nullable ESoapVersion getFromVersionOrDefault(@Nullable String sVersion, @Nullable ESoapVersion eDefault) -
getFromNamespaceURIOrNull
-
getFromMimeTypeOrNull
public static @Nullable ESoapVersion getFromMimeTypeOrNull(@Nullable com.helger.mime.IMimeType aMimeType)
-