Enum Class CommandRouterConstants.CommandRouterAction

java.lang.Object
java.lang.Enum<CommandRouterConstants.CommandRouterAction>
org.eclipse.hono.util.CommandRouterConstants.CommandRouterAction
All Implemented Interfaces:
Serializable, Comparable<CommandRouterConstants.CommandRouterAction>, Constable
Enclosing class:
CommandRouterConstants

public static enum CommandRouterConstants.CommandRouterAction extends Enum<CommandRouterConstants.CommandRouterAction>
Request actions that belong to the Command Router API.
  • Enum Constant Details

  • Method Details

    • 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 CommandRouterConstants.CommandRouterAction 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
    • getSubject

      public String getSubject()
      Gets the AMQP message subject corresponding to this action.
      Returns:
      The subject.
    • from

      public static CommandRouterConstants.CommandRouterAction from(String subject)
      Construct a CommandRouterAction from a subject.
      Parameters:
      subject - The subject from which the CommandRouterAction needs to be constructed.
      Returns:
      The CommandRouterAction as enum.
    • isValid

      public static boolean isValid(String subject)
      Helper method to check if a subject is a valid Command Router API action.
      Parameters:
      subject - The subject to validate.
      Returns:
      boolean Boolean.TRUE if the subject denotes a valid action, Boolean.FALSE otherwise.