|
|||||||||||
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
An OGSA-DAI request constructed as a collection of connected activities.
Requests are sent to a data service resource exposed by a data service. The request consists of a number of activities that that manipulate data exposed by the resource. The Activity
objects that make up the request will have their corresponding ActivityOutput
objects populated with any result data when the response is received by the client toolkit from the data service.
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE Copyright statement |
private static java.lang.String |
FOOTER Perform document footer |
private static java.lang.String |
HEADER Perform document header |
private java.util.List |
mComponents Request components - list of uk.org.ogsadai.client.toolkit.activity.RequestComponent s |
private java.util.Map |
mOutputs Map from activity output names ( java.lang.String ) to uk.org.ogsadai.client.toolkit.activity.ActivityOutput . |
private SessionRequirements |
mSessionRequirements Encapsulates the session requirements for the request. |
Fields inherited from class uk.org.ogsadai.client.toolkit.Request |
|
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 request component to the request. |
void |
add(RequestComponent[] components) Adds the given array of request components to the request. |
void |
clear() Removes all the request components and activity outputs from the request. |
private void |
constructOutputsMap() Constructs a mapping from activity names to activity outputs by asking each request component in turn to add their name and their outputs to a common mapping. |
Response |
createResponse(org.w3c.dom.Document responseDocument) Create a response object corresponding to the given XML document which is assumed to hold an OGSA-DAI XML response document. |
Response |
createResponse(org.w3c.dom.Document responseDocument, AttachmentManager attachmentManager) Create a response object corresponding to the given XML document which is assumed to hold an OGSA-DAI XML response document. |
org.w3c.dom.Document |
getDocument() Get the request (perform document) in its XML format. |
void |
setDataResourceID(ResourceID id) Set the ID of the data service resource at which the request will be directed. |
void |
setDataService(DataService dataService) Sets the proxy of the data service at which the request will be directed. |
private void |
setRequestComponentSession(Session session) Sets the session for each of the request components making up the request. |
void |
setSessionRequirements(SessionRequirements requirements) Sets the session requirements for the request. |
java.lang.String |
toString() Returns a brief description of the request. |
Methods inherited from class uk.org.ogsadai.client.toolkit.Request |
getDataService |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private static final java.lang.String HEADER
private static final java.lang.String FOOTER
private java.util.List mComponents
uk.org.ogsadai.client.toolkit.activity.RequestComponent
s
private java.util.Map mOutputs
java.lang.String
) to uk.org.ogsadai.client.toolkit.activity.ActivityOutput
.
private SessionRequirements mSessionRequirements
Constructor Detail |
public ActivityRequest()
add
methods.
public ActivityRequest(RequestComponent[] components)
components
- Array of components to include in the request.java.lang.IllegalArgumentException
- if components
is null
.Method Detail |
public void add(RequestComponent component)
component
- Request component to add.java.lang.IllegalArgumentException
- if component
is null
.public void add(RequestComponent[] components)
components
- Array of components to include in the request.java.lang.IllegalArgumentException
- if components
is null
.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 responseDocument) throws DataFormatException
Request
createResponse
in class Request
responseDocument
- OGSA-DAI response document.DataFormatException
- if response
does not hold an OGSA-DAI Response document.Request.createResponse(org.w3c.dom.Document)
public Response createResponse(org.w3c.dom.Document responseDocument, AttachmentManager attachmentManager) throws DataFormatException
Request
createResponse
in class Request
responseDocument
- OGSA-DAI response document.attachmentManager
- Object managing attachments.DataFormatException
- if response
does not hold an OGSA-DAI Response document.Request.createResponse(org.w3c.dom.Document, uk.org.ogsadai.client.toolkit.soap.AttachmentManager)
private void setRequestComponentSession(Session session)
session
- the session within which the request components were processed.public void setDataResourceID(ResourceID id)
Request
setDataResourceID
in class Request
id
- Data service resource ID.public void setDataService(DataService dataService)
Request
setDataService
in class Request
dataService
- Data service proxy that will process the request.public org.w3c.dom.Document getDocument()
Request
getDocument
in class Request
private void constructOutputsMap()
public void setSessionRequirements(SessionRequirements requirements)
requirements
- the session requirements for the requestjava.lang.IllegalArgumentException
- if requirements
is null
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |