Package com.nettoolkit.internal
Enum Class StatusCode
- All Implemented Interfaces:
Serializable,Comparable<StatusCode>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intprotected final intprotected static Map<Integer,StatusCode> protected final String -
Method Summary
Modifier and TypeMethodDescriptionstatic StatusCodefromInt(int iCode) intinttoInt()static StatusCodeReturns the enum constant of this class with the specified name.static StatusCode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OK
-
UNDERSTOOD
-
INTERNAL_ERROR
-
UNKNOWN_ERROR
-
CONNECTION_TIMEOUT
-
SERVICE_TIMEOUT
-
GEOCODE_SERVER_BUSY
-
SERVICE_UNAVAILABLE
-
BAD_GATEWAY
-
NOT_PERMITTED
-
INSUFFICIENT_CREDITS
-
INVALID_CREDENTIALS
-
OVER_QUOTA
-
ACCOUNT_DATABASE_REQUIRED
-
VALIDATION_REQUIRED
-
PAYMENT_FAILURE
-
TOO_MANY_REQUESTS
-
BAD_REQUEST
-
INVALID_PARAMETER
-
MISSING_PARAMETER
-
NOT_FOUND
-
RESOURCE_DEPENDENCY_ERROR
-
CONFLICT
-
RESOURCE_EXPIRED
-
UNKNOWN_ROUTE
-
-
Field Details
-
mmapCodes
-
miCode
protected final int miCode -
mstrDescription
-
miHttpStatusCode
protected final int miHttpStatusCode
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
toInt
public int toInt() -
getDescription
-
getHttpStatusCode
public int getHttpStatusCode() -
fromInt
-