MessageStatusSender

public class MessageStatusSender extends SOAPSender

The MessageStatusSender is the SOAP Message client that query the message status record through theMessage status engine (MS-E). From the description in (MS-E), a series of parameters have been defined and required to send to the MS-E.

  1. partnershipId
  2. channelType (OUTGOING | INCOMING)
  3. channelId
  4. folderName
  5. fileName
  6. fromTimestamp (in UTC format)
  7. toTimestamp (in UTC format)
  8. numOfRecords
  9. conversationId
  10. messageId
  11. messageType
  12. messageStatus
  13. protocol
  14. locale (EN)
  15. levelOfDetails (0 | 1)
  16. offset

Creation Date: 12/03/2007

Author:Twinsen Tsang

Fields

MSE_REQUEST_TYPE

public static final String MSE_REQUEST_TYPE

The complex type object for the message status request.

MSE_RESPONSE_TYPE

public static final String MSE_RESPONSE_TYPE

The complex type object for the message response request.

Constructors

MessageStatusSender

public MessageStatusSender(FileLogger l, MessageStatusRequestData m)

Explicit Constructor.

Parameters:
  • l – The logger used for log message and exception.
  • m – The message status properties including the querying parameter.

Methods

getMessageStatusList

public ArrayList getMessageStatusList()

[@GET] Get the list of message status record. It should be called only after the invocation of onResponse().

Returns:a list of message status record using the filter from the last web services call query.

initializeMessage

public void initializeMessage()

Initialize the message using the properties in the MessageStatusRequestData.

Throws:

main

public static void main(String[] args)

The main method is for CLI mode.

onResponse

public void onResponse()

[@EVENT] Retrieve the message status record from the message soap message. It parse the response and transform each MessageInfo complex type into one MessageStatusResponseData.

Throws:

onStart

public void onStart()

Initialize the SOAP Message.