Enum RestConstants
- java.lang.Object
-
- java.lang.Enum<RestConstants>
-
- org.apache.flink.runtime.rest.util.RestConstants
-
- All Implemented Interfaces:
Serializable
,Comparable<RestConstants>
public enum RestConstants extends Enum<RestConstants>
This class contains constants to be used by rest components.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONTENT_TYPE_BINARY
static String
CONTENT_TYPE_JAR
static String
REST_CONTENT_TYPE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RestConstants
valueOf(String name)
Returns the enum constant of this type with the specified name.static RestConstants[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Field Detail
-
REST_CONTENT_TYPE
public static final String REST_CONTENT_TYPE
-
CONTENT_TYPE_JAR
public static final String CONTENT_TYPE_JAR
- See Also:
- Constant Field Values
-
CONTENT_TYPE_BINARY
public static final String CONTENT_TYPE_BINARY
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static RestConstants[] 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 (RestConstants c : RestConstants.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RestConstants 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
-
-