|
|||||||||||
| 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
OGSA-DAI request constructed from an XML perform document.
| Constructor Summary | |
DocumentRequest(org.w3c.dom.Document request)
Constructs a request that consists of the given request document. |
|
DocumentRequest(java.io.File file)
Constructs a request that consists of request document in the specified file. |
|
DocumentRequest(java.lang.String request)
Constructs a request that consists of the given request document. |
|
| Method Summary | |
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)
This implementation takes no action. |
void |
setDataServiceStub(Stub stub)
Set the stub of the data service at which the request will be directed. |
java.lang.String |
toString()
Returns XML request document as a String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DocumentRequest(org.w3c.dom.Document request)
request - XML request document
java.lang.IllegalArgumentException - If argument is null.
public DocumentRequest(java.lang.String request)
throws DocumentParsingException
request - XML request document
DocumentParsingException - If the given request is not valid XML
java.lang.IllegalArgumentException - If argument is null
public DocumentRequest(java.io.File file)
throws java.io.FileNotFoundException,
java.io.IOException,
DocumentParsingException
file - file containing request document
java.io.FileNotFoundException - If the file does not exist
java.io.IOException - If an IO exception occurs when attempting to access the file.
DocumentParsingException - If the file is not valid XML
java.lang.IllegalArgumentException - If argument is null| Method Detail |
public java.lang.String toString()
String.
toString in class java.lang.Objectpublic void setDataResourceID(ResourceID id)
setDataResourceID in class Requestid - - data service resource ID.Request.setDataResourceID(ResourceID id)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 org.w3c.dom.Document getDocument()
getDocument in class Requestpublic void setDataServiceStub(Stub stub)
Request
setDataServiceStub in class Requeststub - - data service stub.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||