org.opengts.db
Enum DCServerFactory.ResultCode

java.lang.Object
  extended by java.lang.Enum<DCServerFactory.ResultCode>
      extended by org.opengts.db.DCServerFactory.ResultCode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DCServerFactory.ResultCode>, EnumTools.StringLocale, EnumTools.StringValue
Enclosing class:
DCServerFactory

public static enum DCServerFactory.ResultCode
extends java.lang.Enum<DCServerFactory.ResultCode>
implements EnumTools.StringLocale, EnumTools.StringValue

ResultCode enumeration for server command responses


Enum Constant Summary
AGED_ROUTE
           
COMMAND_QUEUED
           
EMPTY_REQUEST
           
GATEWAY_ACCOUNT
           
GATEWAY_AUTH
           
GATEWAY_CONFIG
           
GATEWAY_CONNECT
           
GATEWAY_DEVICE
           
GATEWAY_ERROR
           
GATEWAY_HOST
           
GATEWAY_PORT
           
GATEWAY_SERVICE
           
GATEWAY_USER
           
IGNORED_SMS
           
INTERNAL_ERROR
           
INVALID_ACCOUNT
           
INVALID_ARG
           
INVALID_COMMAND
           
INVALID_DEVICE
           
INVALID_EMAIL_FR
           
INVALID_EMAIL_TO
           
INVALID_PACKET
           
INVALID_PROTO
           
INVALID_SERVER
           
INVALID_SMS
           
INVALID_TYPE
           
NO_SESSION
           
NOT_AUTHORIZED
           
NOT_SUPPORTED
           
OFFLINE
           
OVER_LIMIT
           
SUCCESS
           
TRANSMIT_FAIL
           
UNKNOWN
           
UNKNOWN_HOST
           
 
Method Summary
 java.lang.String getCode()
           
 java.lang.String getMessage()
           
 java.lang.String getMessage(java.util.Locale loc)
           
 java.lang.String getStringValue()
           
 boolean isDefault()
           
 boolean isSuccess()
           
 java.lang.String toString()
           
 java.lang.String toString(java.util.Locale loc)
           
static DCServerFactory.ResultCode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DCServerFactory.ResultCode[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SUCCESS

public static final DCServerFactory.ResultCode SUCCESS

COMMAND_QUEUED

public static final DCServerFactory.ResultCode COMMAND_QUEUED

INVALID_ACCOUNT

public static final DCServerFactory.ResultCode INVALID_ACCOUNT

INVALID_DEVICE

public static final DCServerFactory.ResultCode INVALID_DEVICE

INVALID_SERVER

public static final DCServerFactory.ResultCode INVALID_SERVER

NOT_AUTHORIZED

public static final DCServerFactory.ResultCode NOT_AUTHORIZED

OVER_LIMIT

public static final DCServerFactory.ResultCode OVER_LIMIT

INVALID_COMMAND

public static final DCServerFactory.ResultCode INVALID_COMMAND

INVALID_ARG

public static final DCServerFactory.ResultCode INVALID_ARG

INVALID_TYPE

public static final DCServerFactory.ResultCode INVALID_TYPE

EMPTY_REQUEST

public static final DCServerFactory.ResultCode EMPTY_REQUEST

NOT_SUPPORTED

public static final DCServerFactory.ResultCode NOT_SUPPORTED

UNKNOWN_HOST

public static final DCServerFactory.ResultCode UNKNOWN_HOST

TRANSMIT_FAIL

public static final DCServerFactory.ResultCode TRANSMIT_FAIL

NO_SESSION

public static final DCServerFactory.ResultCode NO_SESSION

OFFLINE

public static final DCServerFactory.ResultCode OFFLINE

AGED_ROUTE

public static final DCServerFactory.ResultCode AGED_ROUTE

INVALID_PROTO

public static final DCServerFactory.ResultCode INVALID_PROTO

INVALID_SMS

public static final DCServerFactory.ResultCode INVALID_SMS

IGNORED_SMS

public static final DCServerFactory.ResultCode IGNORED_SMS

INVALID_PACKET

public static final DCServerFactory.ResultCode INVALID_PACKET

INVALID_EMAIL_FR

public static final DCServerFactory.ResultCode INVALID_EMAIL_FR

INVALID_EMAIL_TO

public static final DCServerFactory.ResultCode INVALID_EMAIL_TO

INTERNAL_ERROR

public static final DCServerFactory.ResultCode INTERNAL_ERROR

GATEWAY_ERROR

public static final DCServerFactory.ResultCode GATEWAY_ERROR

GATEWAY_CONFIG

public static final DCServerFactory.ResultCode GATEWAY_CONFIG

GATEWAY_ACCOUNT

public static final DCServerFactory.ResultCode GATEWAY_ACCOUNT

GATEWAY_USER

public static final DCServerFactory.ResultCode GATEWAY_USER

GATEWAY_DEVICE

public static final DCServerFactory.ResultCode GATEWAY_DEVICE

GATEWAY_HOST

public static final DCServerFactory.ResultCode GATEWAY_HOST

GATEWAY_PORT

public static final DCServerFactory.ResultCode GATEWAY_PORT

GATEWAY_CONNECT

public static final DCServerFactory.ResultCode GATEWAY_CONNECT

GATEWAY_AUTH

public static final DCServerFactory.ResultCode GATEWAY_AUTH

GATEWAY_SERVICE

public static final DCServerFactory.ResultCode GATEWAY_SERVICE

UNKNOWN

public static final DCServerFactory.ResultCode UNKNOWN
Method Detail

values

public static DCServerFactory.ResultCode[] 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 (DCServerFactory.ResultCode c : DCServerFactory.ResultCode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DCServerFactory.ResultCode valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getStringValue

public java.lang.String getStringValue()
Specified by:
getStringValue in interface EnumTools.StringValue

getCode

public java.lang.String getCode()

getMessage

public java.lang.String getMessage()

getMessage

public java.lang.String getMessage(java.util.Locale loc)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<DCServerFactory.ResultCode>

toString

public java.lang.String toString(java.util.Locale loc)
Specified by:
toString in interface EnumTools.StringLocale

isDefault

public boolean isDefault()

isSuccess

public boolean isSuccess()