org.jboss.soa.esb.actions.converters
Class ByteArrayToString
java.lang.Object
org.jboss.soa.esb.actions.AbstractActionLifecycle
org.jboss.soa.esb.actions.AbstractActionPipelineProcessor
org.jboss.soa.esb.actions.converters.ByteArrayToString
- All Implemented Interfaces:
- ActionLifecycle, ActionPipelineProcessor
public class ByteArrayToString
- extends AbstractActionPipelineProcessor
Byte Array to String processor.
Sample Action Configuration:
<Action name="Bytes-To-UTF-8-String" processor="ByteArrayToString">
<property name="encoding" value="UTF-8" /> <!-- Default of "UTF-8". -->
</Action>
- Since:
- Version 4.0
- Author:
- tom.fennelly@jboss.com
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteArrayToString
public ByteArrayToString(ConfigTree properties)
- Public constructor.
- Parameters:
properties
- Action properties.
ByteArrayToString
public ByteArrayToString(java.lang.String actionName,
java.util.List<KeyValuePair> properties)
- Public constructor.
- Parameters:
actionName
- Processing action name.properties
- Action properties.
process
public Message process(Message message)
throws ActionProcessingException
- Description copied from interface:
ActionPipelineProcessor
- Perform the action processing on the specified message.
This method is invoked for each message passing throught the pipeline.
- Parameters:
message
- The current message being processed.
- Returns:
- The message to be passed to the next stage of the pipeline.
- Throws:
ActionProcessingException
- for errors during processing.