Enum Class ESMPTransportProfile

java.lang.Object
java.lang.Enum<ESMPTransportProfile>
com.helger.peppol.smp.ESMPTransportProfile
All Implemented Interfaces:
com.helger.base.id.IHasID<String>, com.helger.base.name.IHasName, com.helger.base.type.IHasObjectType, com.helger.base.type.ITypedObject<String>, ISMPTransportProfile, Serializable, Comparable<ESMPTransportProfile>, Constable

public enum ESMPTransportProfile extends Enum<ESMPTransportProfile> implements ISMPTransportProfile
This class contains predefined transport profiles for service registrations. A generic implementation of ISMPTransportProfile can be found in class SMPTransportProfile.
Author:
Philip Helger
  • Enum Constant Details

    • TRANSPORT_PROFILE_START

      @Deprecated(forRemoval=false) public static final ESMPTransportProfile TRANSPORT_PROFILE_START
      Deprecated.
      The Peppol START transport profile
    • TRANSPORT_PROFILE_AS2

      @Deprecated(forRemoval=false) public static final ESMPTransportProfile TRANSPORT_PROFILE_AS2
      Deprecated.
      The Peppol AS2 transport profile v1 (SHA-1).
      Updated with AS2 v2 on 2020-02-01
      Removed from Peppol per 2023-02-24
    • TRANSPORT_PROFILE_AS2_V2

      @Deprecated(forRemoval=false) public static final ESMPTransportProfile TRANSPORT_PROFILE_AS2_V2
      Deprecated.
      The Peppol AS2 v2 transport profile v2 (SHA-256).
      Mandatory (when using AS2) in Peppol since 2020-02-01.
      Removed from Peppol per 2023-02-24
    • TRANSPORT_PROFILE_AS4

      @Deprecated(forRemoval=false) public static final ESMPTransportProfile TRANSPORT_PROFILE_AS4
      Deprecated.
      The AS4 transport profile - too unspecific. Don't use
    • TRANSPORT_PROFILE_BDXR_AS4

      public static final ESMPTransportProfile TRANSPORT_PROFILE_BDXR_AS4
      The CEF AS4 transport profile
    • TRANSPORT_PROFILE_PEPPOL_AS4

      @Deprecated(forRemoval=false) public static final ESMPTransportProfile TRANSPORT_PROFILE_PEPPOL_AS4
      The Peppol AS4 profile v1.
    • TRANSPORT_PROFILE_PEPPOL_AS4_V2

      public static final ESMPTransportProfile TRANSPORT_PROFILE_PEPPOL_AS4_V2
      The Peppol AS4 profile v2
    • TRANSPORT_PROFILE_DBNA_AS4_V1

      public static final ESMPTransportProfile TRANSPORT_PROFILE_DBNA_AS4_V1
      DBNAlliance AS4 profile v1
      Since:
      9.3.2, 12.1.1 the "v1" was changed to "V1"
    • TRANSPORT_PROFILE_ERACUN_AS4_V1

      public static final ESMPTransportProfile TRANSPORT_PROFILE_ERACUN_AS4_V1
      HR eDelivery AS4 profile v1
      Since:
      12.1.1
  • Method Details

    • values

      public static ESMPTransportProfile[] 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 ESMPTransportProfile 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
    • getObjectType

      public @NonNull com.helger.base.type.ObjectType getObjectType()
      Specified by:
      getObjectType in interface com.helger.base.type.IHasObjectType
    • getID

      @Nonempty public @NonNull @Nonempty String getID()
      Description copied from interface: ISMPTransportProfile
      Get the ID to be stored in an SMP endpoint.
      Specified by:
      getID in interface com.helger.base.id.IHasID<String>
      Specified by:
      getID in interface ISMPTransportProfile
    • getName

      @Nonempty public @NonNull @Nonempty String getName()
      Description copied from interface: ISMPTransportProfile
      The display name of this transport profile has no semantics and is just for informational purposes. May neither be null nor empty.
      Specified by:
      getName in interface com.helger.base.name.IHasName
      Specified by:
      getName in interface ISMPTransportProfile
    • getState

      public @NonNull ESMPTransportProfileState getState()
      Specified by:
      getState in interface ISMPTransportProfile
      Returns:
      The state of the transport profile. May not be null.
    • getFromIDOrNull

      public static @Nullable ESMPTransportProfile getFromIDOrNull(@Nullable String sID)
      Find the pre-defined transport profile with the passed ID.
      Parameters:
      sID - The ID to be searched. May be null.
      Returns:
      null if no such transport profile was found.