public enum HTTPVersion extends Enum<HTTPVersion>
| Modifier and Type | Method and Description |
|---|---|
static HTTPVersion |
get(String version) |
int |
getMajor() |
int |
getMinor() |
String |
toString() |
static HTTPVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HTTPVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HTTPVersion HTTP_1_1
public static final HTTPVersion HTTP_1_0
public static HTTPVersion[] values()
for (HTTPVersion c : HTTPVersion.values()) System.out.println(c);
public static HTTPVersion 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 int getMajor()
public int getMinor()
public static HTTPVersion get(String version)
public String toString()
toString in class Enum<HTTPVersion>Copyright © 2008–2017. All rights reserved.