Enum Class WebOperations

java.lang.Object
java.lang.Enum<WebOperations>
org.distributeme.core.conventions.WebOperations
All Implemented Interfaces:
Serializable, Comparable<WebOperations>, Constable

public enum WebOperations extends Enum<WebOperations>
Defines operations supported by the EventServiceRegistryServlet.
Version:
$Id: $Id
Author:
lrosenberg
  • Enum Constant Details

    • ADD_CONSUMER

      public static final WebOperations ADD_CONSUMER
      Adds a consumer to the registry.
    • ADD_SUPPLIER

      public static final WebOperations ADD_SUPPLIER
      Adds a supplier to the registry.
    • NOTIFY_CONSUMER

      public static final WebOperations NOTIFY_CONSUMER
      Notifies that a consumer became unavailable.
    • NOTIFY_SUPPLIER

      public static final WebOperations NOTIFY_SUPPLIER
      Notifies that a supplier became unavailable.
    • LIST

      public static final WebOperations LIST
      Returns the list of channels.
    • RESET

      public static final WebOperations RESET
      Resets the registry.
    • CHANNEL_INFO

      public static final WebOperations CHANNEL_INFO
      Returns info for a channel.
  • Method Details

    • values

      public static WebOperations[] 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 WebOperations 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
    • toWeb

      public String toWeb()
      Returns the presentation of the constant as it's used in the web.
      Returns:
      the lowercase of the string value.