Package com.helger.phase4.model
Enum ESoapVersion
- All Implemented Interfaces:
Serializable,Comparable<ESoapVersion>,java.lang.constant.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 TypeMethodDescriptionstatic ESoapVersiongetFromMimeTypeOrNull(com.helger.commons.mime.IMimeType aMimeType) static ESoapVersiongetFromNamespaceURIOrNull(String sNamespaceURI) static ESoapVersiongetFromVersionOrDefault(String sVersion, ESoapVersion eDefault) static ESoapVersiongetFromVersionOrNull(String sVersion) com.helger.commons.mime.IMimeTypecom.helger.commons.mime.MimeTypegetMimeType(Charset aCharset) Get the mime type of this SOAP version with the passed charset.getMustUnderstandValue(boolean bMustUnderstand) Get the must understand value contained in SOAP instances of this version.booleanstatic ESoapVersionReturns 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.
-
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 type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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
- Returns:
- The mime type of this SOAP version. Never
null.
-
getMimeType
@Nonnull @ReturnsMutableCopy public com.helger.commons.mime.MimeType getMimeType(@Nonnull Charset aCharset) 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
@Nullable public static ESoapVersion getFromVersionOrDefault(@Nullable String sVersion, @Nullable ESoapVersion eDefault) -
getFromNamespaceURIOrNull
-
getFromMimeTypeOrNull
@Nullable public static ESoapVersion getFromMimeTypeOrNull(@Nullable com.helger.commons.mime.IMimeType aMimeType)
-