org.jboss.soa.esb.actions.converters
Class ByteArrayToString

java.lang.Object
  extended by org.jboss.soa.esb.actions.converters.ByteArrayToString
All Implemented Interfaces:
ActionProcessor

public class ByteArrayToString
extends java.lang.Object
implements ActionProcessor

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

Constructor Summary
ByteArrayToString(java.lang.String actionName, java.util.List<KeyValuePair> properties)
          Public constructor.
 
Method Summary
 java.io.Serializable getErrorNotification(Message message)
          Get the "Error" notification message for this processor.
 java.io.Serializable getOkNotification(Message message)
          Get the "OK" notification message for this processor.
 Message process(Message message)
          Perform the processing action on the message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteArrayToString

public ByteArrayToString(java.lang.String actionName,
                         java.util.List<KeyValuePair> properties)
Public constructor.

Parameters:
actionName - Processing action name.
properties - Action properties.
Method Detail

process

public Message process(Message message)
                throws ActionProcessingException
Description copied from interface: ActionProcessor
Perform the processing action on the message

Specified by:
process in interface ActionProcessor
Parameters:
message - The message to be processed.
Returns:
Message - result of process
Throws:
ActionProcessingException - Exception during payload processing.

getOkNotification

public java.io.Serializable getOkNotification(Message message)
Description copied from interface: ActionProcessor
Get the "OK" notification message for this processor.

Specified by:
getOkNotification in interface ActionProcessor
Parameters:
message - The message Object.
Returns:
The OK message.

getErrorNotification

public java.io.Serializable getErrorNotification(Message message)
Description copied from interface: ActionProcessor
Get the "Error" notification message for this processor.

Specified by:
getErrorNotification in interface ActionProcessor
Parameters:
message - The message Object.
Returns:
The Error message.