Enum Class HttpMethod

java.lang.Object
java.lang.Enum<HttpMethod>
cool.scx.common.standard.HttpMethod
All Implemented Interfaces:
Serializable, Comparable<HttpMethod>, Constable

public enum HttpMethod extends Enum<HttpMethod>
HttpMethod
Version:
0.3.6
Author:
scx567888
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
    CONNECT 方法建立一个到由目标资源标识的服务器的隧道。
    DELETE 方法删除指定的资源。
    GET 方法请求一个指定资源的表示形式,使用 GET 的请求应该只被用于获取数据。
    HEAD 方法请求一个与 GET 请求的响应相同的响应,但没有响应体。
    OPTIONS 方法用于描述目标资源的通信选项。
    PATCH 方法用于对资源应用部分修改。
    POST 方法用于将实体提交到指定的资源,通常导致在服务器上的状态变化或副作用。
    PUT 方法用有效载荷请求替换目标资源的所有当前表示。
    TRACE 方法沿着到目标资源的路径执行一个消息环回测试。
  • 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

    • CONNECT

      public static final HttpMethod CONNECT
      CONNECT 方法建立一个到由目标资源标识的服务器的隧道。
    • DELETE

      public static final HttpMethod DELETE
      DELETE 方法删除指定的资源。
    • GET

      public static final HttpMethod GET
      GET 方法请求一个指定资源的表示形式,使用 GET 的请求应该只被用于获取数据。
    • OPTIONS

      public static final HttpMethod OPTIONS
      OPTIONS 方法用于描述目标资源的通信选项。
    • PATCH

      public static final HttpMethod PATCH
      PATCH 方法用于对资源应用部分修改。
    • POST

      public static final HttpMethod POST
      POST 方法用于将实体提交到指定的资源,通常导致在服务器上的状态变化或副作用。
    • PUT

      public static final HttpMethod PUT
      PUT 方法用有效载荷请求替换目标资源的所有当前表示。
    • TRACE

      public static final HttpMethod TRACE
      TRACE 方法沿着到目标资源的路径执行一个消息环回测试。
  • 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