org.jboss.soa.esb.actions
Class FtpUploader

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

public class FtpUploader
extends AbstractFileAction


Constructor Summary
FtpUploader(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.
 java.lang.Object process(java.io.File obj)
          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

FtpUploader

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

Parameters:
actionName - String - Action name.
properties - List - Action Properties.
Throws:
ConfigurationException - Action not properly configured.
Method Detail

process

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

Specified by:
process in class AbstractFileAction
Parameters:
obj - 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.