@ComponentProfile(summary="Turn a object metadata value into a byte array.", since="3.9.0") public class ByteArrayFromObjectMetadata extends ByteArrayFromMetadataWrapper
If the object metadata value is a String
then it is converted using the configured
translator; otherwise it is assumed to already be a byte array.
In the adapter configuration file this class is aliased as byte-array-from-object-metadata which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
ByteArrayFromObjectMetadata() |
Modifier and Type | Method and Description |
---|---|
byte[] |
wrap(InterlokMessage m) |
getKey, getTranslator, setKey, setTranslator, toByteArray, withKey, withTranslator
public byte[] wrap(InterlokMessage m) throws java.lang.Exception
java.lang.Exception