public class BatchResponseDsml
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private int |
requestID
The ID of the response
|
private java.util.List<DsmlDecorator<? extends Response>> |
responses
The Responses list
|
| Constructor and Description |
|---|
BatchResponseDsml()
Creates a new instance of BatchResponseDsml.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addResponse(DsmlDecorator<? extends Response> response)
Adds a request to the Batch Response DSML.
|
DsmlDecorator<? extends Response> |
getCurrentResponse()
Gets the current response
|
int |
getRequestID()
Gets the ID of the response
|
java.util.List<DsmlDecorator<? extends Response>> |
getResponses()
Gets the List of all the responses
|
boolean |
removeResponse(DsmlDecorator<Response> response)
Removes a request from the Batch Response DSML.
|
void |
setRequestID(int requestID)
Sets the ID of the response
|
java.lang.String |
toDsml()
Converts this Batch Response to its XML representation in the DSMLv2 format.
|
java.lang.String |
toDsml(boolean prettyPrint)
Converts this Batch Response to its XML representation in the DSMLv2 format.
|
private java.util.List<DsmlDecorator<? extends Response>> responses
private int requestID
public BatchResponseDsml()
public DsmlDecorator<? extends Response> getCurrentResponse()
public boolean addResponse(DsmlDecorator<? extends Response> response)
response - the request to addpublic boolean removeResponse(DsmlDecorator<Response> response)
response - the request to removepublic int getRequestID()
public void setRequestID(int requestID)
requestID - the ID to setpublic java.util.List<DsmlDecorator<? extends Response>> getResponses()
public java.lang.String toDsml()
#toDsml(boolean)}public java.lang.String toDsml(boolean prettyPrint)
prettyPrint - if true, formats the document for pretty printing