Enum Class SCMPHeaderKey

java.lang.Object
java.lang.Enum<SCMPHeaderKey>
org.serviceconnector.scmp.SCMPHeaderKey
All Implemented Interfaces:
Serializable, Comparable<SCMPHeaderKey>, Constable

public enum SCMPHeaderKey extends Enum<SCMPHeaderKey>
The Enum SCMPHeadlineKey. Defines possible headline key in SCMP.
Author:
JTraber
  • Enum Constant Details

    • UNDEF

      public static final SCMPHeaderKey UNDEF
      The UNDEF, UNDEFINED.
    • REQ

      public static final SCMPHeaderKey REQ
      The REQ, REQUEST.
    • RES

      public static final SCMPHeaderKey RES
      The RES, RESPONSE.
    • EXC

      public static final SCMPHeaderKey EXC
      The EXC, EXCEPTION.
    • PRQ

      public static final SCMPHeaderKey PRQ
      The PRQ, PART REQUEST.
    • PRS

      public static final SCMPHeaderKey PRS
      The PRS, PART RESPONSE.
    • PAC

      public static final SCMPHeaderKey PAC
      The PAC, PART ACKNOWLEDGE.
    • KRQ

      public static final SCMPHeaderKey KRQ
      The KRQ. KEEP ALIVE REQUEST.
    • KRS

      public static final SCMPHeaderKey KRS
      The KRS. KEEP ALIVE RESPONSE.
  • Method Details

    • values

      public static SCMPHeaderKey[] 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 SCMPHeaderKey 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
    • getMsgHeaderKey

      public static SCMPHeaderKey getMsgHeaderKey(String headerKey)
      Gets the msg header key by string.
      Parameters:
      headerKey - the header key
      Returns:
      the msg header key
    • getKeyByHeadline

      public static SCMPHeaderKey getKeyByHeadline(byte[] b)
      Gets the key by headline (byte buffer).
      Parameters:
      b - the b
      Returns:
      the key by headline
    • getKeyByHeadline

      public static SCMPHeaderKey getKeyByHeadline(String string)
      Gets the key by headline (string).
      Parameters:
      string - the string
      Returns:
      the key by headline