Enum Class Message.Label

java.lang.Object
java.lang.Enum<Message.Label>
cl.netswitch.lib.message.Message.Label
All Implemented Interfaces:
Serializable, Comparable<Message.Label>, Constable
Enclosing class:
Message

public static enum Message.Label extends Enum<Message.Label>
Defines the possible labels of a Message.
  • Enum Constant Details

    • AcceptType

      public static final Message.Label AcceptType
      Accept Type.
    • Authorization

      public static final Message.Label Authorization
      Authorization.
    • ContentType

      public static final Message.Label ContentType
      Content Type.
    • LayoutChecksum

      public static final Message.Label LayoutChecksum
      Layout Checksum.
    • LayoutName

      public static final Message.Label LayoutName
      Layout Name.
    • MethodName

      public static final Message.Label MethodName
      Method Name.
    • Originator

      public static final Message.Label Originator
      Originator.
    • PathInfo

      public static final Message.Label PathInfo
      Path Info.
    • ReplyPath

      public static final Message.Label ReplyPath
      Reply Path.
    • RequestId

      public static final Message.Label RequestId
      Request Id.
    • ServerName

      public static final Message.Label ServerName
      Server Name.
    • ServiceName

      public static final Message.Label ServiceName
      Service Name.
    • SwitchName

      public static final Message.Label SwitchName
      Switch Name.
    • Timestamp

      public static final Message.Label Timestamp
      Timestamp.
    • UniqueID

      public static final Message.Label UniqueID
      UniqueID.
  • Method Details

    • values

      public static Message.Label[] 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 Message.Label 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
    • getCode

      public int getCode()
      Returns the unique code of the Label.
      Returns:
      the unique code of the Label.
    • fromCode

      public static Message.Label fromCode(int code)
      Returns the Label with the specified unique code.
      Parameters:
      code - the unique code of the required Label.
      Returns:
      the Label item indexed by supplied code.
      Throws:
      IllegalArgumentException - if code is out-of-range.