Enum ESoapVersion

java.lang.Object
java.lang.Enum<ESoapVersion>
com.helger.phase4.soap.ESoapVersion
All Implemented Interfaces:
Serializable, Comparable<ESoapVersion>, java.lang.constant.Constable

public enum ESoapVersion extends Enum<ESoapVersion>
Enumeration with all known and supported SOAP versions.
Author:
Philip Helger
  • Enum Constant Details

  • Field Details

    • AS4_DEFAULT

      public static final ESoapVersion AS4_DEFAULT
      According to spec 2.1. Feature Set
  • Method Details

    • values

      public static ESoapVersion[] 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

      public static ESoapVersion valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getNamespaceURI

      @Nonnull @Nonempty public String getNamespaceURI()
      Returns:
      The namespace URI for this SOAP version. Neither null nor empty.
    • getNamespacePrefix

      @Nonnull @Nonempty public String getNamespacePrefix()
      Returns:
      The default namespace prefix to be used. Neither null nor empty.
    • getMimeType

      @Nonnull public com.helger.commons.mime.IMimeType 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 be null.
      Returns:
      Never null.
    • getVersion

      @Nonnull @Nonempty public String getVersion()
      Returns:
      The human readable version string. Neither null nor empty.
    • getMustUnderstandValue

      @Nonnull @Nonempty public String getMustUnderstandValue(boolean bMustUnderstand)
      Get the must understand value contained in SOAP instances of this version.
      Parameters:
      bMustUnderstand - must understand value
      Returns:
      A non-null non-empty string.
    • getHeaderElementName

      @Nonnull public String getHeaderElementName()
      Returns:
      The XML element local name of the SOAP header element.
    • getBodyElementName

      @Nonnull public String getBodyElementName()
      Returns:
      The XML element local name of the SOAP body element.
    • isAS4Default

      public boolean isAS4Default()
      Returns:
      true if this SOAP version is the AS4 default version.
      See Also:
    • getFromVersionOrNull

      @Nullable public static ESoapVersion getFromVersionOrNull(@Nullable String sVersion)
    • getFromVersionOrDefault

      @Nullable public static ESoapVersion getFromVersionOrDefault(@Nullable String sVersion, @Nullable ESoapVersion eDefault)
    • getFromNamespaceURIOrNull

      @Nullable public static ESoapVersion getFromNamespaceURIOrNull(@Nullable String sNamespaceURI)
    • getFromMimeTypeOrNull

      @Nullable public static ESoapVersion getFromMimeTypeOrNull(@Nullable com.helger.commons.mime.IMimeType aMimeType)