Package org.elasticsearch.http
Enum HttpRequest.HttpVersion
- java.lang.Object
-
- java.lang.Enum<HttpRequest.HttpVersion>
-
- org.elasticsearch.http.HttpRequest.HttpVersion
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<HttpRequest.HttpVersion>
,java.lang.constant.Constable
- Enclosing interface:
- HttpRequest
public static enum HttpRequest.HttpVersion extends java.lang.Enum<HttpRequest.HttpVersion>
-
-
Method Summary
Modifier and Type Method Description static HttpRequest.HttpVersion
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static HttpRequest.HttpVersion[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HTTP_1_0
public static final HttpRequest.HttpVersion HTTP_1_0
-
HTTP_1_1
public static final HttpRequest.HttpVersion HTTP_1_1
-
-
Method Detail
-
values
public static HttpRequest.HttpVersion[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HttpRequest.HttpVersion valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-