payload factory feature

Payload Factory Feature

Version: 17.07

Supported Since: 17.01

Payload Factory Feature

Payload Factory Feature can be used to create instances of Payloads when required. Payload Factory Feature has only one simple API method.

APIs Java Docs

createPayload

Parameters
T payload

the payload to be used for the new message format

Returns
XMessageFormat

Gives the payload created as a XMessageFormat for the given payload type.

Creates the payload as a XMessageFormat for the given payload type. This will use the relevant implementation of XMessageFormatFactory according to the input payload type and return an implementation of XMessageFormat accordingly. Refer following table for more details.

Input Payload Type

Factory Used

Output XMessageFormat

byte array

ByteArrayFormatFactory

ByteArrayFormat

File

FileFormatFactory

FileFormat

Map

MapFormatFactory

MapFormat

Object

ObjectFormatFactory

ObjectFormat

String

StringFormatFactory

StringFormat

In this topic
In this topic
Contact Us