public static enum HttpMethods.HttpMethod extends Enum<HttpMethods.HttpMethod>
Enum Constant and Description |
---|
DELETE |
GET |
HEAD |
OPTIONS |
PATCH |
POST |
PUT |
TRACE |
Modifier and Type | Method and Description |
---|---|
String |
getMethodName() |
static HttpMethods.HttpMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpMethods.HttpMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpMethods.HttpMethod GET
public static final HttpMethods.HttpMethod HEAD
public static final HttpMethods.HttpMethod POST
public static final HttpMethods.HttpMethod PUT
public static final HttpMethods.HttpMethod PATCH
public static final HttpMethods.HttpMethod DELETE
public static final HttpMethods.HttpMethod OPTIONS
public static final HttpMethods.HttpMethod TRACE
public static HttpMethods.HttpMethod[] values()
for (HttpMethods.HttpMethod c : HttpMethods.HttpMethod.values()) System.out.println(c);
public static HttpMethods.HttpMethod valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getMethodName()
Copyright © 2016–2019 Spring. All rights reserved.