public class JMSMessagePropertyTransformer extends Object implements JMSMessageTransformer
To configure this transformer, set the -p field of the adaptor to the
following (surrounded with double quotes):
<propertyNames> [-d <delimiter>] [-r <requiredPropertyNames>]
propertyNames
- Comma-separated list of JMS properties.delimiter
- Delimiter to use, in single quotes.requiredPropertyNames
- Comma-separated list of required
JMS properties. Default behavior is that all properties are required.Constructor and Description |
---|
JMSMessagePropertyTransformer() |
Modifier and Type | Method and Description |
---|---|
String |
parseArgs(String args)
Parse any transformer-specific args to initialize the transformer.
|
byte[] |
transform(javax.jms.Message message)
Transforms message propertes into a byte array delimtied by delimiter.
|
public String parseArgs(String args)
JMSMessageTransformer
parseArgs
in interface JMSMessageTransformer
args
- Arguments needed to configur the transformer.public byte[] transform(javax.jms.Message message) throws javax.jms.JMSException
The could be enhanced to support the concept of optional/required properties.
transform
in interface JMSMessageTransformer
message
- is data to be transportedjavax.jms.JMSException
- if problem transforming dataCopyright © 2016 Apache Software Foundation. All Rights Reserved.