Class MultiPayloadByteArrayInputParameter

  • All Implemented Interfaces:
    DataInputParameter<byte[]>

    public class MultiPayloadByteArrayInputParameter
    extends java.lang.Object
    implements DataInputParameter<byte[]>
    This MultiPayloadDataInputParameter is used when you want to source data from the MultiPayloadAdaptrisMessage payload.

    In the adapter configuration file this class is aliased as multi-payload-byte-array-input-parameter which is the preferred alternative to the fully qualified classname when building your configuration.

    • Constructor Detail

      • MultiPayloadByteArrayInputParameter

        public MultiPayloadByteArrayInputParameter()
    • Method Detail

      • getPayloadId

        public java.lang.String getPayloadId()
        Get the ID of the payload to extract.
        Returns:
        The payload ID.
      • setPayloadId

        public void setPayloadId​(java.lang.String payloadId)
        Set the ID of the payload to extract.
        Parameters:
        payloadId - The payload ID.
      • extract

        public byte[] extract​(java.lang.String id,
                              MultiPayloadAdaptrisMessage m)
        Extract the payload with the given ID from the multi-payload message.
        Parameters:
        id - The payload ID.
        m - The multi-payload message.
        Returns:
        The extracted payload.