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.mms
Class MMSReceiver

java.lang.Object
  extended by ie.ncl.mms.MMSReceiver
All Implemented Interfaces:
ReceiverListener

public class MMSReceiver
extends java.lang.Object
implements ReceiverListener

This class is used to send an MMSMessage.

See Also:
MMSMessage

Constructor Summary
MMSReceiver(Receiver asyncReceiver)
          An MMS Receiver is constructed with a Receiver object which specifies the underlying transport.
 
Method Summary
 void close()
          Connect close the underlying transport.
 void connect()
          Connect to the underlying transport.
 MMSMessage receive()
          Deprecated. - use receive(ReceiverListener applicationCallback) instead.
 void receive(ReceiverListener listener)
          Setup the receiver listener.
 boolean received(Receiver receiver, java.lang.Exception ex, Message m)
          Implements Receiver Listener API.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MMSReceiver

public MMSReceiver(Receiver asyncReceiver)
An MMS Receiver is constructed with a Receiver object which specifies the underlying transport. Currently the underlying transport sender can be any SMS transport that implements the Receiver interface.

Method Detail

received

public final boolean received(Receiver receiver,
                              java.lang.Exception ex,
                              Message m)
Implements Receiver Listener API. Do not override.

Specified by:
received in interface ReceiverListener
Returns:
true to indicate the message was received successfully, false otherwise
See Also:
Receiver, Receiver.receive(ReceiverListener)

receive

public void receive(ReceiverListener listener)
             throws ConnectionException
Setup the receiver listener. This should be done before calling connect.

Throws:
ConnectionException

receive

public MMSMessage receive()
                   throws MessageException,
                          ConnectionException
Deprecated. - use receive(ReceiverListener applicationCallback) instead.

This method sends an MMSMessage over the underlying transport.

Throws:
MessageException
ConnectionException
See Also:
MMSMessage

connect

public void connect()
             throws ConnectionException
Connect to the underlying transport.

Throws:
ConnectionException

close

public void close()
Connect close the underlying transport.


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