|
|||||||||||
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
A class representing a OGSA-DAI request. This includes a data service stub, a data service resource ID, the request (perform document) and the response document (when it arrives).
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private DataService |
mDataService
The data service that will process the request. |
Constructor Summary | |
Request()
|
Method Summary | |
abstract Response |
createResponse(org.w3c.dom.Document response)
Create a response object corresponding to the given XML document which is assumed to hold an OGSA-DAI XML response document. |
abstract Response |
createResponse(org.w3c.dom.Document response,
AttachmentManager attachmentManager)
Create a response object corresponding to the given XML document which is assumed to hold an OGSA-DAI XML response document. |
protected DataService |
getDataService()
Gets the proxy of the data service at which the request will be directed. |
abstract org.w3c.dom.Document |
getDocument()
Get the request (perform document) in its XML format. |
abstract 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. |
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 DataService mDataService
Constructor Detail |
public Request()
Method Detail |
public abstract void setDataResourceID(ResourceID id)
id
- Data service resource ID.public void setDataService(DataService dataService)
dataService
- Data service proxy that will process the request.
java.lang.IllegalArgumentException
- if dataService
is null
.protected DataService getDataService()
java.lang.IllegalStateException
- if this method is called before setDataService
.public abstract org.w3c.dom.Document getDocument()
public abstract Response createResponse(org.w3c.dom.Document response) throws DataFormatException
response
- OGSA-DAI response document.
DataFormatException
- if response
does not hold an OGSA-DAI
Response document.public abstract Response createResponse(org.w3c.dom.Document response, AttachmentManager attachmentManager) throws DataFormatException
response
- OGSA-DAI response document.attachmentManager
- Object managing attachments.
DataFormatException
- if response
does not hold an OGSA-DAI
Response document.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |