Enum Class HttpMethod

java.lang.Object
java.lang.Enum<HttpMethod>
dk.mada.jaxrs.model.api.HttpMethod
All Implemented Interfaces:
Serializable, Comparable<HttpMethod>, Constable

public enum HttpMethod extends Enum<HttpMethod>
HTTP methods. Ordered as in the RFC.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Establish a tunnel to the server identified by the target resource.
    Remove all current representations of the target resource.
    Transfer a current representation of the target resource.
    Same as GET, but only transfer the status line and header section.
    Describe the communication options for the target resource.
    Apply partial modifications to a resource.
    Perform resource-specific processing on the request payload.
    Replace all current representations of the target resource with the request payload.
    Perform a message loop-back test along the path to the target resource.
  • Method Summary

    Modifier and Type
    Method
    Description
    static HttpMethod
    Returns the enum constant of this class with the specified name.
    static HttpMethod[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • GET

      public static final HttpMethod GET
      Transfer a current representation of the target resource.
    • POST

      public static final HttpMethod POST
      Perform resource-specific processing on the request payload.
    • PUT

      public static final HttpMethod PUT
      Replace all current representations of the target resource with the request payload.
    • DELETE

      public static final HttpMethod DELETE
      Remove all current representations of the target resource.
    • CONNECT

      public static final HttpMethod CONNECT
      Establish a tunnel to the server identified by the target resource.
    • OPTIONS

      public static final HttpMethod OPTIONS
      Describe the communication options for the target resource.
    • TRACE

      public static final HttpMethod TRACE
      Perform a message loop-back test along the path to the target resource.
    • PATCH

      public static final HttpMethod PATCH
      Apply partial modifications to a resource.
  • Method Details

    • values

      public static HttpMethod[] 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 HttpMethod 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