uk.org.ogsadai.client.toolkit.activity.delivery
Class DeliverToURL

java.lang.Object
  |
  +--uk.org.ogsadai.client.toolkit.activity.RequestComponent
        |
        +--uk.org.ogsadai.client.toolkit.activity.Activity
              |
              +--uk.org.ogsadai.client.toolkit.activity.delivery.DeliverToURL

public class DeliverToURL
extends Activity

This activity delivers to a URL from another activity.

It has one input and no output.

Author:
The OGSA-DAI Project Team

Constructor Summary
DeliverToURL()
          Constructs a request to deliver data to URL.
DeliverToURL(java.lang.String url)
          Constructs a request to deliver data to URL.
DeliverToURL(java.lang.String url, ActivityOutput input)
          Constructs a request to deliver data to URL.
 
Method Summary
protected  java.lang.String generateXML()
          Generates the XML representing the activity.
 void setInput(ActivityOutput input)
          Sets the name of the output that will provide the specified input to this activity.
 void setURL(java.lang.String url)
          Set the URL.
 
Methods inherited from class uk.org.ogsadai.client.toolkit.activity.Activity
addInput, addOutput, addOutputs, getDataResourceID, getDataServiceStub, getInputParameters, getOutputParameters, getOutputs, replaceSpecialCharacters, setDataResourceID, setDataServiceStub, setInput
 
Methods inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeliverToURL

public DeliverToURL()
Constructs a request to deliver data to URL.


DeliverToURL

public DeliverToURL(java.lang.String url)
Constructs a request to deliver data to URL.

Parameters:
url - the URL to deliver to
Throws:
java.lang.IllegalArgumentException - If url is not a valid URI or URL.

DeliverToURL

public DeliverToURL(java.lang.String url,
                    ActivityOutput input)
Constructs a request to deliver data to URL.

Parameters:
url - the URL to deliver to
input - input from another activity
Throws:
java.lang.IllegalArgumentException - If url is not a valid URI or URL.
Method Detail

setInput

public void setInput(ActivityOutput input)
Sets the name of the output that will provide the specified input to this activity.

Parameters:
input - input from another activity.
Throws:
java.lang.IllegalArgumentException - If the argument is null.

setURL

public void setURL(java.lang.String url)
Set the URL.

Parameters:
url - the URL
Throws:
java.lang.IllegalArgumentException - If uri is not a valid URI or URL.

generateXML

protected java.lang.String generateXML()
Description copied from class: RequestComponent
Generates the XML representing the activity. This XML can then be inserted into a perform document that is sent to a data service.

Specified by:
generateXML in class Activity
Returns:
the XML for the activity
See Also:
Activity.generateXML()