|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.objectxp.msg.Capability
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");
}
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 |
public static final Capability SEND
public static final Capability RECEIVE
public static final Capability CANCEL
public static final Capability QUERY
public static final Capability REPLACE
| Method Detail |
public java.lang.String toString()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||