|
|||||||||||
| 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.DocumentRequest
Client toolkit wrapper for OGSA-DAI perform documents provided by a client.
| Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private org.w3c.dom.Document |
mPerformDoc
Request (perform document) |
| Fields inherited from class uk.org.ogsadai.client.toolkit.Request |
|
| Constructor Summary | |
DocumentRequest(org.w3c.dom.Document performDoc)
Constructs a request that consists of the given perform document. |
|
DocumentRequest(java.io.File performDocFile)
Constructs a request that consists of the given perform document. |
|
DocumentRequest(java.lang.String performDoc)
Constructs a request that consists of the given perform document. |
|
| Method Summary | |
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. |
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. |
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. |
java.lang.String |
toString()
Return the request as a string. |
| Methods inherited from class uk.org.ogsadai.client.toolkit.Request |
getDataService, setDataService |
| 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 org.w3c.dom.Document mPerformDoc
| Constructor Detail |
public DocumentRequest(org.w3c.dom.Document performDoc)
performDoc - OGSA-DAI perform document.
java.lang.IllegalArgumentException - if performDoc is null.
public DocumentRequest(java.lang.String performDoc)
throws XMLParseException
performDoc - OGSA-DAI perform document in a string
java.lang.IllegalArgumentException - if performDoc is null.
XMLParseException - if the given request is not valid XML
public DocumentRequest(java.io.File performDocFile)
throws XMLFileException,
XMLParseException
performDocFile - OGSA-DAI perform document in a string
java.lang.IllegalArgumentException - if performDocFile is null.
XMLFileException - if there is a problem accessing the given request file.
XMLParseException - if the given request is not valid XML.| Method Detail |
public java.lang.String toString()
toString in class java.lang.Objectpublic void setDataResourceID(ResourceID id)
Request
setDataResourceID in class Requestid - Data service resource ID.
public Response createResponse(org.w3c.dom.Document response)
throws DataFormatException
Request
createResponse in class Requestresponse - OGSA-DAI response document.
DataFormatException - if response does not hold an OGSA-DAI
Response document.
public Response createResponse(org.w3c.dom.Document response,
AttachmentManager attachmentManager)
throws DataFormatException
Request
createResponse in class Requestresponse - OGSA-DAI response document.attachmentManager - Object managing attachments.
DataFormatException - if response does not hold an OGSA-DAI
Response document.public org.w3c.dom.Document getDocument()
Request
getDocument in class Request
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||