|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uk.org.ogsadai.client.toolkit.activity.ActivityResponse
A Response corresponding to an ActivityRequest.
This class is also responsible for populating the outputs for each activity in the ActivityRequest with the data contained within a response document.
| Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICECopyright statement |
private AttachmentManager |
mAttachmentManagerManager for attachments |
private RequestStatus |
mRequestStatusThe status of the request. |
private org.w3c.dom.Document |
mResponseDocumentResponse document as returned from a data service perform operation |
private Session |
mSessionThe session that the request was joined to. |
| Constructor Summary | |
(package private) |
ActivityResponse(DataService dataService, org.w3c.dom.Document response, java.util.Map outputs)Constructs an ActivityResponse for the given response document and populates the activity outputs with the data contained in the response document. |
(package private) |
ActivityResponse(DataService dataService, org.w3c.dom.Document response, java.util.Map outputs, AttachmentManager attachmentManager)Constructs an ActivityResponse for the given response document and populates the activity outputs with the data contained in the response document. |
| 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. |
java.lang.String |
toString()Returns a brief description of this activity response. |
| 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 mResponseDocument
perform operation
private final Session mSession
private final RequestStatus mRequestStatus
private final AttachmentManager mAttachmentManager
| Constructor Detail |
ActivityResponse(DataService dataService,
org.w3c.dom.Document response,
java.util.Map outputs)
throws DataFormatException
ActivityResponse for the given response document and populates the activity outputs with the data contained in the response document.
dataService - Proxy for the data service that processed the request that and returned the response document.response - Response document returned from the service's perform operationoutputs - Mapping of activity output names (java.lang.String) to activity outputs (ActivityOutput) for all the activity outputs that were in the corresponding ActivityRequest.DataFormatException - if response is not actually a response document.
ActivityResponse(DataService dataService,
org.w3c.dom.Document response,
java.util.Map outputs,
AttachmentManager attachmentManager)
throws DataFormatException
ActivityResponse for the given response document and populates the activity outputs with the data contained in the response document. Stores reference to the object managing attachments.
dataService - Proxy for the data service that processed the request that and returned the response document.response - Response document returned from the service's perform operationoutputs - Mapping of activity output names (java.lang.String) to activity outputs (ActivityOutput) for all the activity outputs that were in the corresponding ActivityRequest.attachmentManager - Manager for attachments.DataFormatException - if response is not actually a response document.| Method Detail |
public org.w3c.dom.Document getDocument()
ResponsegetDocument in interface Responsepublic java.lang.String getAsString()
ResponseString.
getAsString in interface Responsepublic java.lang.String toString()
"[ActivityResponse: hashCode=f359ad3a]"
Overrides:toString in class java.lang.Objectpublic Session getSession()
ResponsegetSession in interface ResponseSession object identifying the session.public RequestStatus getRequestStatus()
ResponsegetRequestStatus in interface Responsepublic AttachmentManager getAttachmentManager()
ResponsegetAttachmentManager in interface Response
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||