public enum EHttpVersion extends Enum<EHttpVersion> implements com.helger.commons.name.IHasName
| Modifier and Type | Method and Description |
|---|---|
static EHttpVersion |
getFromNameOrNull(String sName) |
String |
getName() |
boolean |
is10() |
boolean |
isAtLeast11() |
static EHttpVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EHttpVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EHttpVersion HTTP_10
public static final EHttpVersion HTTP_11
public static final EHttpVersion HTTP_20
public static EHttpVersion[] values()
for (EHttpVersion c : EHttpVersion.values()) System.out.println(c);
public static EHttpVersion 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 null@Nonnull @Nonempty public String getName()
getName in interface com.helger.commons.name.IHasNamepublic boolean is10()
public boolean isAtLeast11()
@Nullable public static EHttpVersion getFromNameOrNull(@Nullable String sName)
Copyright © 2016–2019 Philip Helger. All rights reserved.