|
|||||||||||
| 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.xmldb.XMLCreateResource
This activity creates a new resource within an XML database collection.
This version of the activity has no input and one output. The
format of the output is OGSA-DAI specific XML. For example:
<createdResource name="someNewResource"/>
| Constructor Summary | |
XMLCreateResource()
Constructs a request to create a new resource. |
|
XMLCreateResource(java.lang.String content)
Constructs a request to create a new resource. |
|
| Method Summary | |
protected java.lang.String |
generateXML()
Generates the XML representing the activity. |
ActivityOutput |
getOutput()
Gets the activity's only output. |
java.lang.String |
getResourceName()
Gets the name of the added resource. |
void |
setContent(java.lang.String content)
Set the resource content. |
void |
setContentFromFile(java.lang.String contentFileName)
Set the resource content to be the contents of a file. |
void |
setParentCollectionName(java.lang.String parentCollectionName)
Set the parent collection name. |
void |
setResourceName(java.lang.String resourceName)
Set the resource name. |
| 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 |
public XMLCreateResource()
public XMLCreateResource(java.lang.String content)
throws DocumentParsingException
content -
DocumentParsingException - If the content is not valid XML| Method Detail |
public void setResourceName(java.lang.String resourceName)
resourceName - public void setParentCollectionName(java.lang.String parentCollectionName)
parentCollectionName -
public void setContent(java.lang.String content)
throws DocumentParsingException
content -
DocumentParsingException - If the content is not valid XML
public void setContentFromFile(java.lang.String contentFileName)
throws java.io.FileNotFoundException,
java.io.IOException,
DocumentParsingException
contentFileName - name of file containing resource content
java.io.FileNotFoundException - If the file does not exist
java.io.IOException - If an IO exception occurs when attempting to access the file.
DocumentParsingException - If the file is not valid XML
java.lang.IllegalArgumentException - If argument is nullpublic ActivityOutput getOutput()
public java.lang.String getResourceName()
throws ActivityOutputException,
DataFormatException
String containing the resource name.
DataFormatException - If the output data is not in the expected format.
ActivityOutputException - If there is no output data.protected java.lang.String generateXML()
RequestComponent
generateXML in class ActivityActivity.generateXML()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||