Enum Class StatusCode

java.lang.Object
java.lang.Enum<StatusCode>
com.nettoolkit.internal.StatusCode
All Implemented Interfaces:
Serializable, Comparable<StatusCode>, Constable

public enum StatusCode extends Enum<StatusCode>
  • Enum Constant Details

    • OK

      public static final StatusCode OK
    • UNDERSTOOD

      public static final StatusCode UNDERSTOOD
    • INTERNAL_ERROR

      public static final StatusCode INTERNAL_ERROR
    • UNKNOWN_ERROR

      public static final StatusCode UNKNOWN_ERROR
    • CONNECTION_TIMEOUT

      public static final StatusCode CONNECTION_TIMEOUT
    • SERVICE_TIMEOUT

      public static final StatusCode SERVICE_TIMEOUT
    • GEOCODE_SERVER_BUSY

      public static final StatusCode GEOCODE_SERVER_BUSY
    • SERVICE_UNAVAILABLE

      public static final StatusCode SERVICE_UNAVAILABLE
    • BAD_GATEWAY

      public static final StatusCode BAD_GATEWAY
    • NOT_PERMITTED

      public static final StatusCode NOT_PERMITTED
    • INSUFFICIENT_CREDITS

      public static final StatusCode INSUFFICIENT_CREDITS
    • INVALID_CREDENTIALS

      public static final StatusCode INVALID_CREDENTIALS
    • OVER_QUOTA

      public static final StatusCode OVER_QUOTA
    • ACCOUNT_DATABASE_REQUIRED

      public static final StatusCode ACCOUNT_DATABASE_REQUIRED
    • VALIDATION_REQUIRED

      public static final StatusCode VALIDATION_REQUIRED
    • PAYMENT_FAILURE

      public static final StatusCode PAYMENT_FAILURE
    • TOO_MANY_REQUESTS

      public static final StatusCode TOO_MANY_REQUESTS
    • BAD_REQUEST

      public static final StatusCode BAD_REQUEST
    • INVALID_PARAMETER

      public static final StatusCode INVALID_PARAMETER
    • MISSING_PARAMETER

      public static final StatusCode MISSING_PARAMETER
    • NOT_FOUND

      public static final StatusCode NOT_FOUND
    • RESOURCE_DEPENDENCY_ERROR

      public static final StatusCode RESOURCE_DEPENDENCY_ERROR
    • CONFLICT

      public static final StatusCode CONFLICT
    • RESOURCE_EXPIRED

      public static final StatusCode RESOURCE_EXPIRED
    • UNKNOWN_ROUTE

      public static final StatusCode UNKNOWN_ROUTE
  • Field Details

    • mmapCodes

      protected static Map<Integer,StatusCode> mmapCodes
    • miCode

      protected final int miCode
    • mstrDescription

      protected final String mstrDescription
    • miHttpStatusCode

      protected final int miHttpStatusCode
  • Method Details

    • values

      public static StatusCode[] 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

      public static StatusCode valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • toInt

      public int toInt()
    • getDescription

      public String getDescription()
    • getHttpStatusCode

      public int getHttpStatusCode()
    • fromInt

      public static StatusCode fromInt(int iCode)