org.csapi.jr.se.mmm
Interface SendMessage

All Superinterfaces:
Activity, CsapiInterface, java.io.Serializable

public interface SendMessage
extends Activity

This interface represents a SendMessage activity object.


Field Summary
 
Fields inherited from interface org.csapi.jr.se.Activity
ACTIVE_STATE, IDLE_STATE, INVALID_STATE
 
Method Summary
 void addSendMessageListener(SendMessageListener sendMessageListener)
          Adds a SendMessageListener which is interested in events generated by the SendMessage.
 void cancelMessageReq()
          Invokes the cancelMessageReq() method on the Parlay Gateway.
 MultiMediaMessaging getMultiMediaMessaging()
          Returns a reference to the MultiMediaMessaging responsible for creation of the SendMessage.
 void queryStatusReq()
          Invokes the queryStatusReq() method on the Parlay Gateway.
 void removeSendMessageListener(SendMessageListener sendMessageListener)
          Removes a SendMessageListener which is no longer interested events generated by the SendMessage.
 void sendMessageReq(Address sourceAddress, TerminatingAddressList destinationAddressList, java.lang.String deliveryType, MessageTreatment[] messageTreatment, byte[] message, MessageHeaderField[] additionalHeaders)
          Invokes the sendMessageReq() method on the Parlay Gateway.
 
Methods inherited from interface org.csapi.jr.se.Activity
addActivityStateChangeListener, getState, removeActivityStateChangeListener
 

Method Detail

getMultiMediaMessaging

public MultiMediaMessaging getMultiMediaMessaging()
Returns a reference to the MultiMediaMessaging responsible for creation of the SendMessage.

Returns:
A reference to the MultiMediaMessaging responsible for creation of the SendMessage.

addSendMessageListener

public void addSendMessageListener(SendMessageListener sendMessageListener)
Adds a SendMessageListener which is interested in events generated by the SendMessage.

Parameters:
sendMessageListener - A reference to the SendMessageListener which is to be added as a listener.

removeSendMessageListener

public void removeSendMessageListener(SendMessageListener sendMessageListener)
Removes a SendMessageListener which is no longer interested events generated by the SendMessage.

Parameters:
sendMessageListener - A reference to the SendMessageListener which is to be removed as a listener.

sendMessageReq

public void sendMessageReq(Address sourceAddress,
                           TerminatingAddressList destinationAddressList,
                           java.lang.String deliveryType,
                           MessageTreatment[] messageTreatment,
                           byte[] message,
                           MessageHeaderField[] additionalHeaders)
                    throws PlatformException,
                           java.lang.IllegalStateException,
                           CommonException,
                           InvalidAddressException,
                           MmmInvalidDeliveryTypeException,
                           MmmMaxMessageSizeExceededException,
                           MmmDeliveryTypeAddressTypeMismatchException,
                           MmmDeliveryTypeMessageTypeMismatchException,
                           MmmInvalidDeliveryTimeException,
                           MmmInvalidValidityTimeException,
                           MmmMaxSubjectSizeExceededException,
                           MmmInvalidHeaderException
Invokes the sendMessageReq() method on the Parlay Gateway.

Throws:
PlatformException
java.lang.IllegalStateException
CommonException
InvalidAddressException
MmmInvalidDeliveryTypeException
MmmMaxMessageSizeExceededException
MmmDeliveryTypeAddressTypeMismatchException
MmmDeliveryTypeMessageTypeMismatchException
MmmInvalidDeliveryTimeException
MmmInvalidValidityTimeException
MmmMaxSubjectSizeExceededException
MmmInvalidHeaderException

cancelMessageReq

public void cancelMessageReq()
                      throws PlatformException,
                             java.lang.IllegalStateException,
                             CommonException,
                             InvalidNetworkStateException,
                             MmmCannotCancelException
Invokes the cancelMessageReq() method on the Parlay Gateway.

Throws:
PlatformException
java.lang.IllegalStateException
CommonException
InvalidNetworkStateException
MmmCannotCancelException

queryStatusReq

public void queryStatusReq()
                    throws PlatformException,
                           java.lang.IllegalStateException,
                           CommonException,
                           MmmInformationNotAvailableException
Invokes the queryStatusReq() method on the Parlay Gateway.

Throws:
PlatformException
java.lang.IllegalStateException
CommonException
MmmInformationNotAvailableException