Class HTTPParameterSender

  extended by net.sf.xbus.technical.http.HTTPSender
      extended by net.sf.xbus.technical.http.HTTPParameterSender
All Implemented Interfaces:
ObjectSender, Sender, TextSender

public class HTTPParameterSender
extends HTTPSender
implements Sender, ObjectSender

HTTPParameterSender gets a XML document containing parameter and values and sends them as a query string to an URL.

Constructor Summary
HTTPParameterSender(XBUSSystem destination)
          Stores the given destination.
Method Summary
 java.lang.Object execute(java.lang.String function, java.lang.Object callData)
          The given object will be send to the neighbor system.
 java.lang.String getType()
          A Sender can send data either as a String or as an Object to the neighboring system.
Methods inherited from class net.sf.xbus.technical.http.HTTPSender
execute, initialize, sendMessage, setRequestHeaders
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public HTTPParameterSender(XBUSSystem destination)
Stores the given destination.

destination - name of the interface definition
XException - never
Method Detail


public java.lang.Object execute(java.lang.String function,
                                java.lang.Object callData)
                         throws XException
Description copied from interface: ObjectSender
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.

Specified by:
execute in interface ObjectSender
function - used by some senders
callData - the data that shall be send to the neighbor system
the response of the neighbor system
XException - if something goes wrong


public java.lang.String getType()
Description copied from interface: Sender
A Sender can send data either as a String or as an Object to the neighboring system.
When working with Strings the Sender must fulfill two preconditions: When working with Objects the Sender must also fulfill two preconditions:

Specified by:
getType in interface Sender
getType in class HTTPSender