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

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

public class FileToByteArray
extends AbstractFileAction

File data to byte array reader ActionProcessor.

Since:
Version 4.0
Author:
tom.fennelly@jboss.com

Constructor Summary
FileToByteArray()
           
 
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.
protected  java.lang.Object process(java.io.File file)
          Process the file message object.
 
Methods inherited from class org.jboss.soa.esb.actions.AbstractFileAction
process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileToByteArray

public FileToByteArray()
Method Detail

process

protected java.lang.Object process(java.io.File file)
                            throws ActionProcessingException
Description copied from class: AbstractFileAction
Process the file message object.

Specified by:
process in class AbstractFileAction
Parameters:
file - The file to be processed.
Returns:
The processing result.
Throws:
ActionProcessingException - Exception while processing file.

getOkNotification

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

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.

Parameters:
message - The message Object.
Returns:
The Error message.