Enum Class ESoapVersion

java.lang.Object
java.lang.Enum<ESoapVersion>
com.helger.phase4.model.ESoapVersion
All Implemented Interfaces:
Serializable, Comparable<ESoapVersion>, 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 class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

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

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

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

      public @NonNull com.helger.mime.IMimeType getMimeType()
      Returns:
      The mime type of this SOAP version. Never null.
    • getMimeType

      @ReturnsMutableCopy public @NonNull com.helger.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

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

      @Nonempty public @NonNull @Nonempty 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

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

      public @NonNull 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

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

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

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

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