esmska.transfer
Enum GatewayVariable

java.lang.Object
  extended by java.lang.Enum<GatewayVariable>
      extended by esmska.transfer.GatewayVariable
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<GatewayVariable>

public enum GatewayVariable
extends java.lang.Enum<GatewayVariable>

Enum of gateway variables applicable in the gateway script. Beware that values of all these variables are encoded in the x-www-form-urlencoded format (which you would want to use anyway, except maybe for some format checking of recepient and sender number).


Enum Constant Summary
LOGIN
          Login name to the gateway website
MESSAGE
          Text of the SMS message
NUMBER
          Phone number in fully international format +[0-9]{1,15}
PASSWORD
          Password to the gateway website
RECEIPT
          This string is non-empty if a delivery report should be sent
SENDERNAME
          Name of the sender
SENDERNUMBER
          Phone number of the sender in fully international format +[0-9]{1,15}
 
Method Summary
static GatewayVariable valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static GatewayVariable[] 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

NUMBER

public static final GatewayVariable NUMBER
Phone number in fully international format +[0-9]{1,15}


MESSAGE

public static final GatewayVariable MESSAGE
Text of the SMS message


SENDERNAME

public static final GatewayVariable SENDERNAME
Name of the sender


SENDERNUMBER

public static final GatewayVariable SENDERNUMBER
Phone number of the sender in fully international format +[0-9]{1,15}


LOGIN

public static final GatewayVariable LOGIN
Login name to the gateway website


PASSWORD

public static final GatewayVariable PASSWORD
Password to the gateway website


RECEIPT

public static final GatewayVariable RECEIPT
This string is non-empty if a delivery report should be sent

Method Detail

values

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

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

valueOf

public static GatewayVariable 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