|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--uk.org.ogsadai.client.toolkit.Request
|
+--uk.org.ogsadai.client.toolkit.activity.ActivityRequest
OGSA-DAI request constructed as a collection of connected activities.
OGSA-DAI sends requests to the data service to perform a number of
activities that manipulate this data. The Activity
objects that make up the request will have their corresponding
ActivityOutput objects populated with any result data
when the request is passed to the data service's
perform method.
| Constructor Summary | |
ActivityRequest()
Constructs an activity request with no activities. |
|
ActivityRequest(RequestComponent[] components)
Constructs an activity request that contains the specified components. |
|
| Method Summary | |
void |
add(RequestComponent component)
Adds the given composite component to the request. |
void |
add(RequestComponent[] components)
Adds the given array of request components to the request. |
void |
clear()
Removes all the activities from the request. |
Response |
createResponse(org.w3c.dom.Document response)
Returns a Response object compatible with this
Request object. |
org.w3c.dom.Document |
getDocument()
Gets the request as an XML DOM object. |
void |
setDataResourceID(ResourceID id)
Inform all of the activities in this request of the ResourceID identifying the resource that
this request is being executed against. |
void |
setDataServiceStub(Stub stub)
Inform all of the activities in this request of the DataService object executing the request. |
java.lang.String |
toString()
Returns a brief description of this activity output. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ActivityRequest()
add methods.
public ActivityRequest(RequestComponent[] components)
components - array of components to include in the request
java.lang.IllegalArgumentException - if the argument is null| Method Detail |
public void add(RequestComponent component)
component - composite activity to add
java.lang.IllegalArgumentException - If the argument is nullpublic void add(RequestComponent[] components)
components - public void clear()
public java.lang.String toString()
"[ActivityRequest: #activities=3 ]"
- Overrides:
toString in class java.lang.Object
public Response createResponse(org.w3c.dom.Document response)
Response object compatible with this
Request object.
The Response object will populated with the XML
response document.
createResponse in class Requestresponse - XML response document
Response object.public void setDataResourceID(ResourceID id)
ResourceID identifying the resource that
this request is being executed against.
setDataResourceID in class Requestid - the ResourceID objectpublic void setDataServiceStub(Stub stub)
DataService object executing the request.
setDataServiceStub in class Requeststub - the DataService objectpublic org.w3c.dom.Document getDocument()
getDocument in class RequestInternalErrorException - If an internal OGSA-DAI error occurs because an activity
generated invalid XML.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||