uk.org.ogsadai.client.toolkit
Class Request

java.lang.Object
  |
  +--uk.org.ogsadai.client.toolkit.Request
Direct Known Subclasses:
ActivityRequest, DocumentRequest

public abstract class Request
extends java.lang.Object

A class representing a client-side OGSA-DAI request. This includes a data service stub, a data service resource ID, the request (perform) document and the response document.

Author:
The OGSA-DAI Team.

Constructor Summary
Request()
           
 
Method Summary
abstract  Response createResponse(org.w3c.dom.Document response)
          Create a Response from the given DOM object which is assumed to hold a response document.
abstract  org.w3c.dom.Document getDocument()
          Get the request (perform) document.
abstract  void setDataResourceID(ResourceID id)
          Set the ID of the data service resource at which the request will be directed.
abstract  void setDataServiceStub(Stub stub)
          Set the stub of the data service at which the request will be directed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Request

public Request()
Method Detail

setDataResourceID

public abstract void setDataResourceID(ResourceID id)
Set the ID of the data service resource at which the request will be directed.

Parameters:
id - - data service resource ID.

setDataServiceStub

public abstract void setDataServiceStub(Stub stub)
Set the stub of the data service at which the request will be directed.

Parameters:
stub - - data service stub.

getDocument

public abstract org.w3c.dom.Document getDocument()
Get the request (perform) document.

Returns:
DOM object containing the request document.

createResponse

public abstract Response createResponse(org.w3c.dom.Document response)
Create a Response from the given DOM object which is assumed to hold a response document.

Parameters:
response - - DOM object holding response document.
Returns:
Response object.