com.heroku.api.http
Enum Http.UserAgent

java.lang.Object
  extended by java.lang.Enum<Http.UserAgent>
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.heroku.api.http.Http.Header
Http.Header.Util
 
Enum Constant Summary
LATEST
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LATEST

public static final Http.UserAgent LATEST
Method Detail

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.