HttpMethod Class

public final class HttpMethod
extends ExpandableStringEnum<HttpMethod>

HTTP method.

Field Summary

Modifier and Type Field and Description
static final HttpMethod GET

Get.

Constructor Summary

Constructor Description
HttpMethod()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of HttpMethod value.

Method Summary

Modifier and Type Method and Description
static HttpMethod fromString(String name)

Creates or finds a HttpMethod from its string representation.

static Collection<HttpMethod> values()

Gets known HttpMethod values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

GET

public static final HttpMethod GET

Get.

Constructor Details

HttpMethod

@Deprecated
public HttpMethod()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of HttpMethod value.

Method Details

fromString

public static HttpMethod fromString(String name)

Creates or finds a HttpMethod from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding HttpMethod.

values

public static Collection<HttpMethod> values()

Gets known HttpMethod values.

Returns:

known HttpMethod values.

Applies to