org.marre.sms.transport.pswincom
Class PsWinXmlTransport

java.lang.Object
  extended byorg.marre.sms.transport.pswincom.PsWinXmlTransport
All Implemented Interfaces:
SmsTransport

public class PsWinXmlTransport
extends java.lang.Object
implements SmsTransport

Simple transport for the pswin xml protocol. See http://www.pswin.com/ for more information.

 Available properties:
 smsj.pswincom.username
 smsj.pswincom.password
 smsj.pswincom.server - server address (default is "sms.pswin.com")
 smsj.pswincom.port - port (default is "1111")
 

Version:
$Id: PsWinXmlTransport.java,v 1.10 2005/11/26 16:24:23 c95men Exp $
Author:
Markus

Constructor Summary
PsWinXmlTransport()
           
 
Method Summary
 void connect()
          Connect.
 void disconnect()
          Disconnect.
 void init(java.util.Properties props)
          Initializes the pswin transport.
 void ping()
          Ping.
 java.lang.String send(SmsMessage msg, SmsAddress dest, SmsAddress sender)
          Send.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PsWinXmlTransport

public PsWinXmlTransport()
Method Detail

init

public void init(java.util.Properties props)
          throws SmsException
Initializes the pswin transport.

Specified by:
init in interface SmsTransport
Parameters:
props - Properties used to configure this transport.
Throws:
SmsException - If there was a problem with the configuration.
See Also:
SmsTransport.init(java.util.Properties)

send

public java.lang.String send(SmsMessage msg,
                             SmsAddress dest,
                             SmsAddress sender)
                      throws SmsException,
                             java.io.IOException
Send.

Specified by:
send in interface SmsTransport
Parameters:
msg -
dest -
sender -
Returns:
Internal message id.
Throws:
SmsException
java.io.IOException
See Also:
org.marre.sms.transport.SmsTransport#send()

connect

public void connect()
Connect.

Specified by:
connect in interface SmsTransport
See Also:
SmsTransport.connect()

disconnect

public void disconnect()
Disconnect.

Specified by:
disconnect in interface SmsTransport
See Also:
SmsTransport.disconnect()

ping

public void ping()
Ping.

Specified by:
ping in interface SmsTransport
See Also:
SmsTransport.ping()


Copyright © 2002-2005 Markus Eriksson. All Rights Reserved.