Package org.apache.flink.runtime.rest
Enum HttpMethodWrapper
- java.lang.Object
-
- java.lang.Enum<HttpMethodWrapper>
-
- org.apache.flink.runtime.rest.HttpMethodWrapper
-
- All Implemented Interfaces:
Serializable
,Comparable<HttpMethodWrapper>
public enum HttpMethodWrapper extends Enum<HttpMethodWrapper>
This class wraps netty'sHttpMethod
s into an enum, allowing us to use them in switches.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpMethod
getNettyHttpMethod()
static HttpMethodWrapper
valueOf(String name)
Returns the enum constant of this type with the specified name.static HttpMethodWrapper[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GET
public static final HttpMethodWrapper GET
-
POST
public static final HttpMethodWrapper POST
-
DELETE
public static final HttpMethodWrapper DELETE
-
PATCH
public static final HttpMethodWrapper PATCH
-
PUT
public static final HttpMethodWrapper PUT
-
-
Method Detail
-
values
public static HttpMethodWrapper[] 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 (HttpMethodWrapper c : HttpMethodWrapper.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HttpMethodWrapper 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
-
getNettyHttpMethod
public org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpMethod getNettyHttpMethod()
-
-