Class HttpMethod (2.37.0)

public final class HttpMethod extends StringEnumValue

Http method supported by Storage service.

Inheritance

java.lang.Object > com.google.cloud.StringEnumValue > HttpMethod

Static Fields

DELETE

public static final HttpMethod DELETE
Field Value
Type Description
HttpMethod

GET

public static final HttpMethod GET
Field Value
Type Description
HttpMethod

HEAD

public static final HttpMethod HEAD
Field Value
Type Description
HttpMethod

OPTIONS

public static final HttpMethod OPTIONS
Field Value
Type Description
HttpMethod

POST

public static final HttpMethod POST
Field Value
Type Description
HttpMethod

PUT

public static final HttpMethod PUT
Field Value
Type Description
HttpMethod

Static Methods

valueOf(String constant)

public static HttpMethod valueOf(String constant)

Get the HttpMethod for the given String constant, and allow unrecognized values.

Parameter
Name Description
constant String
Returns
Type Description
HttpMethod

valueOfStrict(String constant)

public static HttpMethod valueOfStrict(String constant)

Get the HttpMethod for the given String constant, and throw an exception if the constant is not recognized.

Parameter
Name Description
constant String
Returns
Type Description
HttpMethod

values()

public static HttpMethod[] values()

Return the known values for HttpMethod.

Returns
Type Description
HttpMethod[]