net.sourceforge.taverna.io
Class GetStreamTransmitter

java.lang.Object
  extended by net.sourceforge.taverna.io.AbstractStreamTransmitter
      extended by net.sourceforge.taverna.io.GetStreamTransmitter
All Implemented Interfaces:
StreamTransmitter

public class GetStreamTransmitter
extends AbstractStreamTransmitter

This class uses an HTTP GET to send data to a URL endpoint, and returns the result Last edited by $Author: sowen70 $

Version:
$Revision: 1.3 $
Author:
Mark

Constructor Summary
GetStreamTransmitter()
           
 
Method Summary
 java.lang.StringBuffer makeParameter(java.lang.String name, java.lang.String value)
          This method makes a parameter value pair
 java.util.Map transmit(java.util.Map map, StreamProcessor streamProcessor)
          This method takes a reflectable object and transmits it to a service
 
Methods inherited from class net.sourceforge.taverna.io.AbstractStreamTransmitter
setAuthentication, setContext, setHost, setMimeHeader, setPort, setServiceName, setURL
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetStreamTransmitter

public GetStreamTransmitter()
Method Detail

transmit

public java.util.Map transmit(java.util.Map map,
                              StreamProcessor streamProcessor)
                       throws TransmitterException
Description copied from interface: StreamTransmitter
This method takes a reflectable object and transmits it to a service

Specified by:
transmit in interface StreamTransmitter
Specified by:
transmit in class AbstractStreamTransmitter
Parameters:
map - A map object (either HashTable or HashMap) containing the parameter names(keys) and parameter values to be transmitted.
Throws:
TransmitterException
See Also:
StreamTransmitter.transmit(java.util.Map, net.sourceforge.taverna.io.StreamProcessor)

makeParameter

public java.lang.StringBuffer makeParameter(java.lang.String name,
                                            java.lang.String value)
This method makes a parameter value pair

Parameters:
name - The name of the parameter.
value - The value of the parameter.
Returns:
A StringBuffer in the form "parameterName=value". To keep the StringBuffer->String conversion overhead down, this method returns a StringBuffer.