net.sf.xbus.technical
Interface ObjectSender

All Known Implementing Classes:
AS400ByteArrayListSender, AS400ProgramSender, DatabaseSender, FileByteArrayListSender, FileLineWriterSender, FileStreamSender, HTTPByteArrayListSender, HTTPParameterSender, HTTPStreamSender, JavaSender, LDAPSender, PingSender

public interface ObjectSender

Senders which send objects as messages to neighbor-systems have to implement the ObjectSender-interface.


Method Summary
 java.lang.Object execute(java.lang.String function, java.lang.Object callData)
          The given object will be send to the neighbor system.
 

Method Detail

execute

java.lang.Object execute(java.lang.String function,
                         java.lang.Object callData)
                         throws XException
The given object will be send to the neighbor system. The response of the neighbor system is the return value of this method.

Optionally a function can be specified. It can be used for calling different methods of the neighbor-system.

Parameters:
function - used by some senders
callData - the data that shall be send to the neighbor system
Returns:
the response of the neighbor system
Throws:
XException - if something goes wrong