net.sf.xbus.technical.misc
Class SimpleProgramSender

java.lang.Object
  extended by net.sf.xbus.technical.misc.ProgramSender
      extended by net.sf.xbus.technical.misc.SimpleProgramSender
All Implemented Interfaces:
Sender, TextSender

public class SimpleProgramSender
extends ProgramSender
implements TextSender

SimpleProgramSender calls an external program. Program name and parameters are read out of the configuration. It is simple in that sense that it does not support specific timeout requirements - in contrast to the ProgramSender.

Author:
Stephan Dwel

Field Summary
 
Fields inherited from class net.sf.xbus.technical.misc.ProgramSender
mDestination
 
Constructor Summary
SimpleProgramSender(XBUSSystem destination)
           
 
Method Summary
 java.lang.String execute(java.lang.String function, java.lang.String callData)
          Calls an external program.
 
Methods inherited from class net.sf.xbus.technical.misc.ProgramSender
getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleProgramSender

public SimpleProgramSender(XBUSSystem destination)
See Also:
ProgramSender.ProgramSender(XBUSSystem)
Method Detail

execute

public java.lang.String execute(java.lang.String function,
                                java.lang.String callData)
                         throws XException
Description copied from class: ProgramSender
Calls an external program. Program name and parameters are read out of the configuration.

Specified by:
execute in interface TextSender
Overrides:
execute in class ProgramSender
Parameters:
function - ignored
callData - ignored
Returns:
the response of the neighbor system
Throws:
XException - if something goes wrong
See Also:
ProgramSender.execute(String, String), ProgramCaller.call()