com.heroku.api.http
public static enum Http.Accept extends Enum<Http.Accept> implements Http.Header
Http.Header.Util
Modifier and Type | Method and Description |
---|---|
String |
getHeaderName() |
String |
getHeaderValue() |
static Http.Accept |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Http.Accept[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Http.Accept JSON
public static final Http.Accept TEXT
public static Http.Accept[] values()
for (Http.Accept c : Http.Accept.values()) System.out.println(c);
public static Http.Accept 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.Header
public String getHeaderValue()
getHeaderValue
in interface Http.Header
Copyright © 2014. All Rights Reserved.