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

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

public class MockAction
extends java.lang.Object
implements ActionProcessor

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
MockAction()
           
 
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

MockAction

public MockAction()
Method Detail

process

public Message process(Message message)
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

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.