com.objectxp.msg
Class Capability

java.lang.Object
  extended bycom.objectxp.msg.Capability

public final class Capability
extends java.lang.Object

The Capabilities class can be used to determine if a SMS Service has a specific feature:

 SmsService service = new GsmSmsService();
 ...
 if(service.hasCapability(Capability.CANCEL)) {
   System.out.println("Service is able to cancel previously submitted messages");
 }
 

Since:
jSMS 2.1.8
See Also:
SmsService.hasCapability(Capability)

Field Summary
static Capability CANCEL
          The CANCEL capability signals that a SMS service supports canceling a previously submitted message.
static Capability QUERY
          The QUERY capability signals that a SMS service supports querying the status of a previously sent message.
static Capability RECEIVE
          The RECEIVE capability signals that a SMS service supports receiving short messages (SMS)
static Capability REPLACE
          The REPLACE capability signals that a SMS service supports replacing previously submitted messages.
static Capability SEND
          The SEND capability signals that a SMS service supports sending short messages (SMS)
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SEND

public static final Capability SEND
The SEND capability signals that a SMS service supports sending short messages (SMS)


RECEIVE

public static final Capability RECEIVE
The RECEIVE capability signals that a SMS service supports receiving short messages (SMS)


CANCEL

public static final Capability CANCEL
The CANCEL capability signals that a SMS service supports canceling a previously submitted message.


QUERY

public static final Capability QUERY
The QUERY capability signals that a SMS service supports querying the status of a previously sent message.


REPLACE

public static final Capability REPLACE
The REPLACE capability signals that a SMS service supports replacing previously submitted messages.

Method Detail

toString

public java.lang.String toString()


object XP, Inc. © 2000-2007. All rights reserved object XP