public enum HttpMethod extends Enum<HttpMethod>
Enum Constant and Description |
---|
after |
afterafter |
before |
connect |
delete |
get |
head |
options |
patch |
post |
put |
trace |
unsupported |
Modifier and Type | Method and Description |
---|---|
static HttpMethod |
get(String methodStr)
Gets the HttpMethod corresponding to the provided string.
|
static HttpMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpMethod get
public static final HttpMethod post
public static final HttpMethod put
public static final HttpMethod patch
public static final HttpMethod delete
public static final HttpMethod head
public static final HttpMethod trace
public static final HttpMethod connect
public static final HttpMethod options
public static final HttpMethod before
public static final HttpMethod after
public static final HttpMethod afterafter
public static final HttpMethod unsupported
public static HttpMethod[] values()
for (HttpMethod c : HttpMethod.values()) System.out.println(c);
public static 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 static HttpMethod get(String methodStr)
unsupported
will be returned.methodStr
- The string containing HTTP method nameCopyright © 2017. All rights reserved.