|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.ogsadai.client.toolkit.DocumentResponse
A class representing an OGSA-DAI response corresponding to a request
that, client-side, was represented as a DocumentRequest
.
Every Request
has a corresponding
Response
that processes the response returned by a
service containing the results of the request.
This class does not process the OGSA-DAI XML response document received from a service in any way. The class simply provides methods to access XML document.
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private AttachmentManager |
mAttachmentManager
|
private RequestStatus |
mRequestStatus
Request status as contained in the response document |
private org.w3c.dom.Document |
mResponseDocument
Response document |
private Session |
mSession
Session that the request was joined to |
Constructor Summary | |
DocumentResponse(DataService dataService,
org.w3c.dom.Document response)
Creates a new document response object. |
|
DocumentResponse(DataService dataService,
org.w3c.dom.Document response,
AttachmentManager attachmentManager)
|
Method Summary | |
java.lang.String |
getAsString()
Gets the response document in its unprocessed XML form as a String . |
AttachmentManager |
getAttachmentManager()
Gets the attachment manager object that provides convenient access to attachmens data. |
org.w3c.dom.Document |
getDocument()
Gets the response as in its unprocessed XML form. |
RequestStatus |
getRequestStatus()
Gets the status of the request as contained in the response. |
Session |
getSession()
Gets the session details from the response. |
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 org.w3c.dom.Document mResponseDocument
private final Session mSession
private final RequestStatus mRequestStatus
private final AttachmentManager mAttachmentManager
Constructor Detail |
public DocumentResponse(DataService dataService, org.w3c.dom.Document response) throws DataFormatException
dataService
- Data service that generated the response.response
- Response document from service.
DataFormatException
- If the request status or session status cannot be
extracted from the response.public DocumentResponse(DataService dataService, org.w3c.dom.Document response, AttachmentManager attachmentManager) throws DataFormatException
Method Detail |
public org.w3c.dom.Document getDocument()
Response
getDocument
in interface Response
public java.lang.String getAsString()
Response
String
.
getAsString
in interface Response
public Session getSession()
Response
getSession
in interface Response
Session
object identifying the session.public RequestStatus getRequestStatus()
Response
getRequestStatus
in interface Response
public AttachmentManager getAttachmentManager()
Response
getAttachmentManager
in interface Response
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |