|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.marre.sms.transport.ucp.UcpTransport
An SmsTransport that sends the SMS through an UCP SMSC
Constructor Summary | |
UcpTransport()
|
Method Summary | |
byte[] |
buildLogin(java.lang.String userid,
java.lang.String pwd)
Building the Login Stream |
byte[] |
buildSubmit(SmsPdu pdu,
boolean moreToSend,
SmsAddress dest,
SmsAddress sender)
|
void |
connect()
Connects to the SMS server. |
void |
disconnect()
Closing Socket and Streams |
void |
init(java.util.Properties props)
Initializes the class with the properties specified |
void |
ping()
Pings the SMS sender. |
java.lang.String |
send(SmsMessage msg,
SmsAddress theDest,
SmsAddress sender)
Sends an SmsMessage to the given destination. |
java.lang.String |
sendUcp(byte[] data)
This method is sending the Data to over the existing Connection and recives the answer, the Answer is returned as a String. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UcpTransport()
Method Detail |
public void init(java.util.Properties props) throws SmsException
init
in interface SmsTransport
props
- smsj.ucp.ip.host : the ip address or dns name of the
UCP server SmsException
public void connect() throws SmsException, java.io.IOException
SmsTransport
connect
in interface SmsTransport
java.io.IOException
- Inidicates a failure to communicate with the SMS server.
SmsException
- Indicates a sms related problem.public java.lang.String send(SmsMessage msg, SmsAddress theDest, SmsAddress sender) throws SmsException, java.io.IOException
SmsTransport
send
in interface SmsTransport
msg
- The Message to sendtheDest
- Destination addresssender
- Sender address
java.io.IOException
- Inidicates a failure to communicate with the SMS server.
SmsException
- Indicates a sms related problem.public byte[] buildLogin(java.lang.String userid, java.lang.String pwd) throws SmsException
userid
- pwd
-
SmsException
public byte[] buildSubmit(SmsPdu pdu, boolean moreToSend, SmsAddress dest, SmsAddress sender) throws SmsException
SmsException
public void ping() throws SmsException
SmsTransport
ping
in interface SmsTransport
SmsException
- Indicates a sms related problem.public void disconnect() throws SmsException, java.io.IOException
disconnect
in interface SmsTransport
SmsException
java.io.IOException
- Inidicates a failure to communicate with the SMS server.public java.lang.String sendUcp(byte[] data) throws SmsException, java.io.IOException
data
-
SmsException
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |