public enum HttpMethod extends java.lang.Enum<HttpMethod>
ClientHttpRequest
および RestTemplate
での使用を目的としています。修飾子と型 | メソッドと説明 |
---|---|
boolean | matches(java.lang.String method) この HttpMethod が指定されたメソッド値と一致するかどうかを判別します。 |
static HttpMethod | resolve(java.lang.String method) 指定されたメソッド値を HttpMethod に解決します。 |
static HttpMethod | valueOf(java.lang.String name) 指定された名前を持つこの型の列挙定数を返します。 |
static HttpMethod[] | values() この列挙型の定数を含む配列を、宣言されている順序で返します。 |
public static final HttpMethod GET
public static final HttpMethod HEAD
public static final HttpMethod POST
public static final HttpMethod PUT
public static final HttpMethod PATCH
public static final HttpMethod DELETE
public static final HttpMethod OPTIONS
public static final HttpMethod TRACE
public static HttpMethod[] values()
for (HttpMethod c : HttpMethod.values()) System.out.println(c);
public static HttpMethod valueOf(java.lang.String name)
name
- 返される列挙定数の名前。java.lang.IllegalArgumentException
- この列挙型に指定された名前の定数がない場合 java.lang.NullPointerException
- 引数が null の場合 @Nullable public static HttpMethod resolve(@Nullable java.lang.String method)
HttpMethod
に解決します。method
- 文字列としてのメソッド値 HttpMethod
、または見つからない場合は null
public boolean matches(java.lang.String method)
HttpMethod
が指定されたメソッド値と一致するかどうかを判別します。method
- 文字列としてのメソッド値 true
、一致しない場合は false