Package com.google.cloud.logging
Class HttpRequest.RequestMethod
- java.lang.Object
-
- com.google.cloud.StringEnumValue
-
- com.google.cloud.logging.HttpRequest.RequestMethod
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- HttpRequest
public static final class HttpRequest.RequestMethod extends com.google.cloud.StringEnumValue
The HTTP request method.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static HttpRequest.RequestMethod
GET
static HttpRequest.RequestMethod
HEAD
static HttpRequest.RequestMethod
POST
static HttpRequest.RequestMethod
PUT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HttpRequest.RequestMethod
valueOf(String constant)
Get the RequestMethod for the given String constant, and allow unrecognized values.static HttpRequest.RequestMethod
valueOfStrict(String constant)
Get the RequestMethod for the given String constant, and throw an exception if the constant is not recognized.static HttpRequest.RequestMethod[]
values()
Return the known values for RequestMethod.
-
-
-
Field Detail
-
GET
public static final HttpRequest.RequestMethod GET
-
HEAD
public static final HttpRequest.RequestMethod HEAD
-
PUT
public static final HttpRequest.RequestMethod PUT
-
POST
public static final HttpRequest.RequestMethod POST
-
-
Method Detail
-
valueOfStrict
public static HttpRequest.RequestMethod valueOfStrict(String constant)
Get the RequestMethod for the given String constant, and throw an exception if the constant is not recognized.
-
valueOf
public static HttpRequest.RequestMethod valueOf(String constant)
Get the RequestMethod for the given String constant, and allow unrecognized values.
-
values
public static HttpRequest.RequestMethod[] values()
Return the known values for RequestMethod.
-
-