public static enum Http.UserAgent extends Enum<Http.UserAgent> implements Http.Header
UserAgentValueProviderHttp.Header.Util| Enum Constant and Description |
|---|
LATEST |
| Modifier and Type | Method and Description |
|---|---|
String |
getHeaderName() |
String |
getHeaderValue() |
String |
getHeaderValue(String customPart) |
static Http.UserAgent |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Http.UserAgent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Http.UserAgent LATEST
public static Http.UserAgent[] values()
for (Http.UserAgent c : Http.UserAgent.values()) System.out.println(c);
public static Http.UserAgent 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 String getHeaderName()
getHeaderName in interface Http.Headerpublic String getHeaderValue()
getHeaderValue in interface Http.HeaderCopyright © 2018. All rights reserved.