public class BytePayloadCacheValueTranslator extends java.lang.Object implements CacheValueTranslator<byte[]>
CacheValueTranslator
that retrieves / sets the payload of the message.In the adapter configuration file this class is aliased as byte-payload-cache-value-translator which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
BytePayloadCacheValueTranslator() |
Modifier and Type | Method and Description |
---|---|
void |
addValueToMessage(AdaptrisMessage msg,
byte[] value)
Injects the supplied Object value into the message,
|
byte[] |
getValueFromMessage(AdaptrisMessage msg)
Retrieves a value from a message
|
public byte[] getValueFromMessage(AdaptrisMessage msg) throws CoreException
CacheValueTranslator
getValueFromMessage
in interface CacheValueTranslator<byte[]>
CoreException
public void addValueToMessage(AdaptrisMessage msg, byte[] value) throws CoreException
CacheValueTranslator
addValueToMessage
in interface CacheValueTranslator<byte[]>
CoreException