HttpMethod Class

public final class HttpMethod
extends ExpandableStringEnum<HttpMethod>

The http method of the request.

Field Summary

Modifier and Type Field and Description
static final HttpMethod DELETE

Static value Delete for HttpMethod.

static final HttpMethod GET

Static value Get for HttpMethod.

static final HttpMethod PATCH

Static value Patch for HttpMethod.

static final HttpMethod POST

Static value Post for HttpMethod.

static final HttpMethod PUT

Static value Put for HttpMethod.

static final HttpMethod UNKNOWN

Static value Unknown for HttpMethod.

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

DELETE

public static final HttpMethod DELETE

Static value Delete for HttpMethod.

GET

public static final HttpMethod GET

Static value Get for HttpMethod.

PATCH

public static final HttpMethod PATCH

Static value Patch for HttpMethod.

POST

public static final HttpMethod POST

Static value Post for HttpMethod.

PUT

public static final HttpMethod PUT

Static value Put for HttpMethod.

UNKNOWN

public static final HttpMethod UNKNOWN

Static value Unknown for HttpMethod.

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