com.heroku.api.http
Enum Http.UserAgent
java.lang.Object
java.lang.Enum<Http.UserAgent>
com.heroku.api.http.Http.UserAgent
- All Implemented Interfaces:
- Http.Header, Serializable, Comparable<Http.UserAgent>
- Enclosing class:
- Http
public static enum Http.UserAgent
- extends Enum<Http.UserAgent>
- implements Http.Header
HTTP User-Agent header model.
- See Also:
UserAgentValueProvider
LATEST
public static final Http.UserAgent LATEST
values
public static Http.UserAgent[] 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 (Http.UserAgent c : Http.UserAgent.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Http.UserAgent 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 name
NullPointerException
- if the argument is null
getHeaderName
public String getHeaderName()
- Specified by:
getHeaderName
in interface Http.Header
getHeaderValue
public String getHeaderValue()
- Specified by:
getHeaderValue
in interface Http.Header
getHeaderValue
public String getHeaderValue(String customPart)
Copyright © 2012. All Rights Reserved.