public enum HttpMethodWrapper extends Enum<HttpMethodWrapper>
HttpMethod
s into an enum, allowing us to use them in switches.Modifier and Type | Method and 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.
|
public static final HttpMethodWrapper GET
public static final HttpMethodWrapper POST
public static final HttpMethodWrapper DELETE
public static final HttpMethodWrapper PATCH
public static final HttpMethodWrapper PUT
public static HttpMethodWrapper[] values()
for (HttpMethodWrapper c : HttpMethodWrapper.values()) System.out.println(c);
public static HttpMethodWrapper valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic org.apache.flink.shaded.netty4.io.netty.handler.codec.http.HttpMethod getNettyHttpMethod()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.