Enum HttpRequestMethod
- java.lang.Object
-
- java.lang.Enum<HttpRequestMethod>
-
- org.bremersee.apiclient.webflux.contract.HttpRequestMethod
-
- All Implemented Interfaces:
Serializable
,Comparable<HttpRequestMethod>
public enum HttpRequestMethod extends Enum<HttpRequestMethod>
The http request method.- Author:
- Christian Bremer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.web.reactive.function.client.WebClient.RequestHeadersUriSpec<?>
invoke(org.springframework.web.reactive.function.client.WebClient webClient)
Invoke request headers uri spec.static Optional<HttpRequestMethod>
resolve(String method)
Resolve.static HttpRequestMethod
valueOf(String name)
Returns the enum constant of this type with the specified name.static HttpRequestMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GET
public static final HttpRequestMethod GET
Get http request method.
-
HEAD
public static final HttpRequestMethod HEAD
Head http request method.
-
POST
public static final HttpRequestMethod POST
Post http request method.
-
PUT
public static final HttpRequestMethod PUT
Put http request method.
-
PATCH
public static final HttpRequestMethod PATCH
Patch http request method.
-
DELETE
public static final HttpRequestMethod DELETE
Delete http request method.
-
OPTIONS
public static final HttpRequestMethod OPTIONS
Options http request method.
-
-
Method Detail
-
values
public static HttpRequestMethod[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HttpRequestMethod c : HttpRequestMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HttpRequestMethod valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
invoke
public org.springframework.web.reactive.function.client.WebClient.RequestHeadersUriSpec<?> invoke(org.springframework.web.reactive.function.client.WebClient webClient)
Invoke request headers uri spec.- Parameters:
webClient
- the web client- Returns:
- the request headers uri spec
-
resolve
public static Optional<HttpRequestMethod> resolve(String method)
Resolve.- Parameters:
method
- the method- Returns:
- the optional
-
-