com.heroku.api.http
Enum Http.Status
java.lang.Object
java.lang.Enum<Http.Status>
com.heroku.api.http.Http.Status
- All Implemented Interfaces:
- Serializable, Comparable<Http.Status>
- Enclosing class:
- Http
public static enum Http.Status
- extends Enum<Http.Status>
HTTP Status codes. Not all are implemented. Only those used by the Heroku API.
Method Summary |
boolean |
equals(int code)
|
static Http.Status |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Http.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
OK
public static final Http.Status OK
CREATED
public static final Http.Status CREATED
ACCEPTED
public static final Http.Status ACCEPTED
PAYMENT_REQUIRED
public static final Http.Status PAYMENT_REQUIRED
FORBIDDEN
public static final Http.Status FORBIDDEN
NOT_FOUND
public static final Http.Status NOT_FOUND
UNPROCESSABLE_ENTITY
public static final Http.Status UNPROCESSABLE_ENTITY
INTERNAL_SERVER_ERROR
public static final Http.Status INTERNAL_SERVER_ERROR
statusCode
public final int statusCode
values
public static Http.Status[] 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.Status c : Http.Status.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.Status 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
equals
public boolean equals(int code)
Copyright © 2012. All Rights Reserved.