Enum Class HttpVerb

java.lang.Object
java.lang.Enum<HttpVerb>
org.duracloud.security.domain.HttpVerb
All Implemented Interfaces:
Serializable, Comparable<HttpVerb>, Constable

public enum HttpVerb extends Enum<HttpVerb>
This enum provides helper methods to the HTTP verbs.
Author:
Andrew Woods Date: 11/18/11
  • Enum Constant Details

    • GET

      public static final HttpVerb GET
    • PUT

      public static final HttpVerb PUT
    • POST

      public static final HttpVerb POST
    • DELETE

      public static final HttpVerb DELETE
  • Method Details

    • values

      public static HttpVerb[] 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 HttpVerb 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
    • fromString

      public static HttpVerb fromString(String text)
    • isRead

      public boolean isRead()