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 data to a URL.

It has one input - the data to be delivered - and no output.

Author:
The OGSA-DAI Project Team

Field Summary
private static java.lang.String COPYRIGHT_NOTICE
          Copyright statement
private  java.lang.String mURL
          Destination URL.
 
Fields inherited from class uk.org.ogsadai.client.toolkit.activity.Activity
 
Fields inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent
 
Constructor Summary
DeliverToURL()
          Constructs a request to deliver data to a URL.
DeliverToURL(java.lang.String url)
          Constructs a request to deliver data to a URL.
DeliverToURL(java.lang.String url, ActivityOutput input)
          Constructs a request to deliver data to a URL.
 
Method Summary
protected  java.lang.String generateXML()
          Generates the XML representing the activity.
 void setInput(ActivityOutput input)
          Sets the input of this activity to be the output from another activity that will provide the data to be stored.
 void setURL(java.lang.String url)
          Sets the URL.
 
Methods inherited from class uk.org.ogsadai.client.toolkit.activity.Activity
addInput, addOutput, addOutputs, getDataResourceID, getInputParameters, getOutputParameters, getOutputs, replaceSpecialCharacters, setDataResourceID, setInput
 
Methods inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent
getDataService, getName, getSession, setDataService, setSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT_NOTICE

private static final java.lang.String COPYRIGHT_NOTICE
Copyright statement

See Also:
Constant Field Values

mURL

private java.lang.String mURL
Destination URL.

Constructor Detail

DeliverToURL

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

The URL must be set using setURL. The activity providing the input data must be set using setInput.


DeliverToURL

public DeliverToURL(java.lang.String url)
Constructs a request to deliver data to a URL. The activity providing the input data must be set using setInput.

Parameters:
url - The url.
Throws:
java.lang.IllegalArgumentException - If url is null or the empty string or not a valid URL.

DeliverToURL

public DeliverToURL(java.lang.String url,
                    ActivityOutput input)
Constructs a request to deliver data to a URL. The activity providing the input data must be set using setInput.

Parameters:
url - The url.
input - Output from another activity.
Throws:
java.lang.IllegalArgumentException - If url is null or the empty string or not a valid URL or if input is null.
Method Detail

setInput

public final void setInput(ActivityOutput input)
Sets the input of this activity to be the output from another activity that will provide the data to be stored.

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

setURL

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

Parameters:
url - The URL.
Throws:
java.lang.IllegalArgumentException - If url is null or the empty string or not a valid 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()