OutgoingPayloadsRepository

public class OutgoingPayloadsRepository extends PayloadsRepository

The outgoing payloads repository retrieves the payload which is in the form of directory. Creation Date: 5/10/2006

Author:Twinsen Tsang

Constructors

OutgoingPayloadsRepository

public OutgoingPayloadsRepository(String path)

Methods

createPayloads

public NamedPayloads createPayloads(Object[] params, int initialState)

Create a customizing payloads for the specified parameter. Since the outgoing payloads is in the form of <partnership_id>$<message_id>, so the size of parameters size should have at least 2.

Parameters:
  • params – An array object parameters set for creating the payload.
Throws:

createPayloadsProxy

protected NamedPayloads createPayloadsProxy(File proxyObj)

Create a customizing payloads for this repository.

Parameters:
  • proxyObj – The file object for the payloads.
Returns:

a customizing payloads.

getPayload

public NamedPayloads getPayload(Object[] params, int state)

Get a particular payload in the payload repository by the specified parameters. Since the outgoing payloads is in the form of <partnership_id>$<message_id>, so the size of parameters size should have at least 2.

Parameters:
  • params – An array object parameters set for creating the payload.
  • state – The current state of that payload.
Returns:

the payload with the specified params or null if it does not exist.

getPayloads

public Collection getPayloads()
Returns:A set of directories which contains the payloads set.

getProcessingPayloads

public Collection getProcessingPayloads()
Returns:Get the list of processing payloads in the payload repositoy;