|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for an SMS transport. This interface is used to transfer an smsj message to the sms server.
Method Summary | |
void |
connect()
Connects to the SMS server. |
void |
disconnect()
Disconnects from the SMS server. |
void |
init(java.util.Properties props)
Initializes the transport. |
void |
ping()
Pings the SMS sender. |
java.lang.String |
send(SmsMessage msg,
SmsAddress dest,
SmsAddress sender)
Sends an SmsMessage to the given destination. |
Method Detail |
public void init(java.util.Properties props) throws SmsException
props
- Properties used to configure this transport.
SmsException
- If there was a problem with the configuration.public void connect() throws SmsException, java.io.IOException
SmsException
- Indicates a sms related problem.
java.io.IOException
- Inidicates a failure to communicate with the SMS server.public void ping() throws SmsException, java.io.IOException
SmsException
- Indicates a sms related problem.
java.io.IOException
- Inidicates a failure to communicate with the SMS server.public java.lang.String send(SmsMessage msg, SmsAddress dest, SmsAddress sender) throws SmsException, java.io.IOException
msg
- The Message to senddest
- Destination addresssender
- Sender address
SmsException
- Indicates a sms related problem.
java.io.IOException
- Inidicates a failure to communicate with the SMS server.public void disconnect() throws SmsException, java.io.IOException
SmsException
- Indicates a sms related problem.
java.io.IOException
- Inidicates a failure to communicate with the SMS server.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |