public enum HttpMethodDescriptor extends Enum<HttpMethodDescriptor>
| Enum Constant and Description |
|---|
DELETE |
GET |
HEAD |
OPTIONS |
PATCH |
POST |
PUT |
| Modifier and Type | Method and Description |
|---|---|
static HttpMethodDescriptor |
forName(String name) |
String |
getName() |
static HttpMethodDescriptor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpMethodDescriptor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpMethodDescriptor GET
public static final HttpMethodDescriptor POST
public static final HttpMethodDescriptor PUT
public static final HttpMethodDescriptor PATCH
public static final HttpMethodDescriptor DELETE
public static final HttpMethodDescriptor HEAD
public static final HttpMethodDescriptor OPTIONS
public static HttpMethodDescriptor[] values()
for (HttpMethodDescriptor c : HttpMethodDescriptor.values()) System.out.println(c);
public static HttpMethodDescriptor 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 getName()
public static HttpMethodDescriptor forName(String name)
Copyright © 2020. All rights reserved.