|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.ogsadai.client.toolkit.activity.RequestComponent | +--uk.org.ogsadai.client.toolkit.activity.Activity | +--uk.org.ogsadai.client.toolkit.activity.delivery.DeliverFromURL
This activity delivers from a URL to another activity.
It has no input and one output - the data from the URL.
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private int |
mNoOfBytesToBlock
Number of bytes to aggregate into blocks |
private java.lang.String |
mURI
Source URI. |
Fields inherited from class uk.org.ogsadai.client.toolkit.activity.Activity |
|
Fields inherited from class uk.org.ogsadai.client.toolkit.activity.RequestComponent |
|
Constructor Summary | |
DeliverFromURL()
Constructs a request to read data from URL. |
|
DeliverFromURL(java.lang.String url)
Constructs a request to read data from URL. |
|
DeliverFromURL(java.lang.String url,
int noOfBytesInBlock)
Constructs a request to read file from URL. |
Method Summary | |
protected java.lang.String |
generateXML()
Generates the XML representing the activity. |
ActivityOutput |
getOutput()
Gets the activity's only output - the data from the URL. |
void |
setBlockSize(int noOfBytesInBlock)
Set the number of bytes to aggregate into blocks. |
void |
setURL(java.lang.String url)
Set 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 |
private static final java.lang.String COPYRIGHT_NOTICE
private java.lang.String mURI
private int mNoOfBytesToBlock
Constructor Detail |
public DeliverFromURL()
public DeliverFromURL(java.lang.String url)
url
- The URL.
java.lang.IllegalArgumentException
- If url
is null
or not a valid URI
or URL.public DeliverFromURL(java.lang.String url, int noOfBytesInBlock)
url
- The URL.noOfBytesInBlock
- Number of bytes to aggregate into blocks.
java.lang.IllegalArgumentException
- If url
is null
or empty or not a
valid URI or URL or if noOfBytesInBlock
is 0
or less.Method Detail |
public void setURL(java.lang.String url)
url
- The URL.
java.lang.IllegalArgumentException
- If url
is null
or not a valid URI
or URL.public void setBlockSize(int noOfBytesInBlock)
noOfBytesInBlock
- Number of bytes to aggregate into blocks.
java.lang.IllegalArgumentException
- If noOfBytesInBlock
is 0 or less.public ActivityOutput getOutput()
protected java.lang.String generateXML()
RequestComponent
generateXML
in class Activity
Activity.generateXML()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |