Experts in SMS and MMS Technology. NCLs Provato is an SMS/MMS Gateway supporting  WAP Push, EMS, MMS, SMS, Nokia Smart Messaging, SMPP, CIMD, UCP, MM7, M20, TC35 NCL Technologies Ltd
Provato - SMS MMS Gateway
Mobile Messaging in J2EE & .NET

SwiftNote - Java SMS Toolkit

ie.ncl.msg
Class SyncSender

java.lang.Object
  extended by ie.ncl.msg.SyncSender
All Implemented Interfaces:
SenderListener

public class SyncSender
extends java.lang.Object
implements SenderListener

This is a convenience class for converting asynchronous senders into synchronous ones. Using this evades the need for the application to set-up callbacks.


Constructor Summary
SyncSender(Sender sender)
          Construct a synchronous sender.
 
Method Summary
 void close()
          Close the connection.
 void connect()
          Open the connection, if not already open.
 void send(Message m)
          Send a message asynchronously.
 void sent(Sender sender, java.lang.Exception ex, Message m)
          Implements the SenderListener API - used internally.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyncSender

public SyncSender(Sender sender)
Construct a synchronous sender.

Method Detail

sent

public void sent(Sender sender,
                 java.lang.Exception ex,
                 Message m)
Implements the SenderListener API - used internally.

Specified by:
sent in interface SenderListener

send

public void send(Message m)
          throws MessageException,
                 ConnectionException
Send a message asynchronously.

Throws:
MessageException
ConnectionException

close

public void close()
Close the connection.


connect

public void connect()
             throws ConnectionException
Open the connection, if not already open.

Throws:
ConnectionException

Experts in SMS and MMS Technology. NCLs Provato is an SMS/MMS Gateway supporting  WAP Push, EMS, MMS, SMS, Nokia Smart Messaging, SMPP, CIMD, UCP, MM7, M20, TC35 NCL Technologies Ltd
Provato - SMS MMS Gateway
Mobile Messaging in J2EE & .NET

SwiftNote - Java SMS Toolkit