com.heroku.api.http
Enum Http.Status

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


Enum Constant Summary
ACCEPTED
           
CREATED
           
FORBIDDEN
           
INTERNAL_SERVER_ERROR
           
NOT_FOUND
           
OK
           
PAYMENT_REQUIRED
           
UNPROCESSABLE_ENTITY
           
 
Field Summary
 int statusCode
           
 
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.
 
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

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
Field Detail

statusCode

public final int statusCode
Method Detail

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.