|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uk.org.ogsadai.engine.controlflow.ResponseBuilderImpl
A ResponseBuilder to assemble an OGSA-DAI response document that
conforms to the response document schema for OGSA-DAI R6.
| Constructor Summary | |
ResponseBuilderImpl()
|
|
| Method Summary | |
void |
buildError(java.lang.String name,
java.lang.Exception cause)
Assembles part of the response document describing an error that has occurred while processing part of a request. |
void |
buildRequestError(java.lang.String cause)
Assembles the part of the response document describing the status of a request that has failed due to an error. |
void |
buildRequestStatus(Status status)
Assembles the part of the response document describing the status of the request. |
void |
buildResult(java.lang.String name,
Status status,
byte[] data)
Assembles part of the response document describing the result of processing part of the request. |
org.w3c.dom.Document |
getResponseDocument()
Gets the assembled response document. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ResponseBuilderImpl()
| Method Detail |
public void buildResult(java.lang.String name,
Status status,
byte[] data)
ResponseBuilder
buildResult in interface ResponseBuildername - the name associated with the resultstatus - the status of the resultdata - the result data. This may be null or an empty
String if the result contains no result data.
public void buildError(java.lang.String name,
java.lang.Exception cause)
ResponseBuilder
buildError in interface ResponseBuildername - the name associated with the errorcause - the Exception that was raised by the errorpublic void buildRequestStatus(Status status)
ResponseBuilder
buildRequestStatus in interface ResponseBuilderstatus - the Status of the requestpublic void buildRequestError(java.lang.String cause)
ResponseBuilder
buildRequestError in interface ResponseBuildercause - the cause string for the errorpublic org.w3c.dom.Document getResponseDocument()
ResponseBuilder
getResponseDocument in interface ResponseBuilderDocument
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||