org.jboss.soa.esb.actions.templates
Class MockFileAction

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

public class MockFileAction
extends AbstractFileAction

Use this class to tune your XML configurations

Once your config works with this dummy class, you can switch to your own action class

You will have to implement these three methods in your own action class

Author:
Esteban

Constructor Summary
MockFileAction()
           
 
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 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

MockFileAction

public MockFileAction()
Method Detail

process

public 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.