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
Interface Receiver

All Superinterfaces:
Connection
All Known Implementing Classes:
CimdConnection, ConnectionManager, GsmModem, LongMessageReceiver, Loopback, SmppConnection, UCPConnection

public interface Receiver
extends Connection

An Receiver is a connection to some service that is used to deliver messages to the application. See above for implementations of the Receiver object. See the Factory class for ways of instantiaing receivers dynamically at runtime.

See Also:
Factory

Field Summary
 
Fields inherited from interface ie.ncl.msg.Connection
CONNECTED, NOT_CONNECTED, NOT_USED, RECONNECTING
 
Method Summary
 void acknowledge(Message message, boolean success)
          Acknowledge a received messages.
 void receive(ReceiverListener listener)
          Deprecated. Use setReceiverListener(ReceiverListener) instead
 void setReceiverListener(ReceiverListener listener)
          Registers listener with the underlying transport.
 
Methods inherited from interface ie.ncl.msg.Connection
close, connect, connected, getConnectionStatus, getTypeDefaults, init, init, putTypeDefaults, setErrorListener, shutdown
 

Method Detail

receive

void receive(ReceiverListener listener)
             throws ConnectionException
Deprecated. Use setReceiverListener(ReceiverListener) instead

Receive messages asynchronously. The underlying transport should not receive messages until this is setup. Also, the underlying transport should not acknowledge messages until the ReceiverListener returns true or acknowledge is called.

Throws:
ConnectionException
See Also:
Message

setReceiverListener

void setReceiverListener(ReceiverListener listener)
                         throws ConnectionException
Registers listener with the underlying transport. The underlying transport should not receive messages until this is setup. Also, the underlying transport should not acknowledge messages until the ReceiverListener returns true or acknowledge is called.

Throws:
ConnectionException
See Also:
Message

acknowledge

void acknowledge(Message message,
                 boolean success)
                 throws MessageException,
                        ConnectionException
Acknowledge a received messages. Messages that already have been acknowledged or that require no acknowledgement should be ignored. By default a (receiver) connection will acknowledge messages automatically unless otherwise specified so calls to acknowledge may be unnecessary.

Throws:
MessageException
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