public static enum HttpConstants.HttpMethod extends Enum<HttpConstants.HttpMethod>
Enum Constant and Description |
---|
CONNECT |
DELETE |
GET |
HEAD |
OPTIONS |
POST |
PUT |
TRACE |
Modifier and Type | Method and Description |
---|---|
static HttpConstants.HttpMethod |
fromString(String name)
Constructs a HttpMethod from the referenced name, assumed to be the
result of calling
toString() on an HttpMethod instance. |
String |
toString() |
static HttpConstants.HttpMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpConstants.HttpMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpConstants.HttpMethod OPTIONS
public static final HttpConstants.HttpMethod GET
public static final HttpConstants.HttpMethod HEAD
public static final HttpConstants.HttpMethod POST
public static final HttpConstants.HttpMethod PUT
public static final HttpConstants.HttpMethod DELETE
public static final HttpConstants.HttpMethod TRACE
public static final HttpConstants.HttpMethod CONNECT
public static HttpConstants.HttpMethod[] values()
for (HttpConstants.HttpMethod c : HttpConstants.HttpMethod.values()) System.out.println(c);
public static HttpConstants.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 toString()
toString
in class Enum<HttpConstants.HttpMethod>
public static HttpConstants.HttpMethod fromString(String name)
toString()
on an HttpMethod instance. This
differs from valueOf(String)
in that method expects the
declarative name (i.e the result of Enum.name()
).name
- The name of the HttpMethod to search for. May be null
. If
null
, null
is returned.toString()
value equals that of name
,
else null
.Copyright © 2017. All rights reserved.