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 - 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.| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
log |
| 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.
|
protected String |
transformValue(String propertyName,
Object propertyValue)
Transforms the propertyValue found into the string that should be used for
the message.
|
public String parseArgs(String args)
JMSMessageTransformerparseArgs in interface JMSMessageTransformerargs - 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 JMSMessageTransformermessage - javax.jms.JMSExceptionprotected String transformValue(String propertyName, Object propertyValue)
propertyName - The name of the JMS propertypropertyValue - The value of the property, which might be null.Copyright © 2015 Apache Software Foundation. All Rights Reserved.