|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.dsmlv2.request.BatchRequestDsml
public class BatchRequestDsml
This class represents the Batch Request. It can be used to generate an the XML String of a BatchRequest.
| Nested Class Summary | |
|---|---|
static class |
BatchRequestDsml.OnError
This enum represents the different types of on error handling for a BatchRequest |
static class |
BatchRequestDsml.Processing
This enum represents the different types of processing for a Batch Request |
static class |
BatchRequestDsml.ResponseOrder
This enum represents the different types of response order for a Batch Request |
| Constructor Summary | |
|---|---|
BatchRequestDsml()
Creates a new instance of BatchResponseDsml. |
|
| Method Summary | |
|---|---|
boolean |
addRequest(DsmlDecorator<? extends Request> request)
Adds a request to the Batch Request DSML. |
DsmlDecorator<? extends Request> |
getCurrentRequest()
Gets the current request |
BatchRequestDsml.OnError |
getOnError()
Gets the on error handling type of the request |
BatchRequestDsml.Processing |
getProcessing()
Gets the processing type of the request |
int |
getRequestID()
Gets the ID of the request |
List<DsmlDecorator<? extends Request>> |
getRequests()
Gets the List of all the requests in the Batch Request |
BatchRequestDsml.ResponseOrder |
getResponseOrder()
Gets the response order type of the request |
boolean |
isStoringRequests()
|
boolean |
removeRequest(DsmlDecorator<? extends Request> request)
Removes a request from the Batch Request DSML. |
void |
setOnError(BatchRequestDsml.OnError onError)
Sets the on error handling type of the request |
void |
setProcessing(BatchRequestDsml.Processing processing)
Sets the processing type of the request |
void |
setRequestID(int requestID)
Sets the ID of the request |
void |
setResponseOrder(BatchRequestDsml.ResponseOrder responseOrder)
Sets the response order type of the request |
void |
setStoreReq(boolean storeReq)
set the storeReq flag to turn on/off storing of request objects Note: it is better to set this flag to false while processing large DSML batch requests |
String |
toDsml()
Converts this Batch Request to its XML representation in the DSMLv2 format. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BatchRequestDsml()
| Method Detail |
|---|
public DsmlDecorator<? extends Request> getCurrentRequest()
public boolean addRequest(DsmlDecorator<? extends Request> request)
request - the request to add
public boolean removeRequest(DsmlDecorator<? extends Request> request)
request - the request to remove
public int getRequestID()
public void setRequestID(int requestID)
requestID - the ID to setpublic BatchRequestDsml.Processing getProcessing()
public void setProcessing(BatchRequestDsml.Processing processing)
processing - the processing type to setpublic BatchRequestDsml.OnError getOnError()
public void setOnError(BatchRequestDsml.OnError onError)
onError - the on error handling type to setpublic BatchRequestDsml.ResponseOrder getResponseOrder()
public void setResponseOrder(BatchRequestDsml.ResponseOrder responseOrder)
responseOrder - the response order type to setpublic List<DsmlDecorator<? extends Request>> getRequests()
public String toDsml()
public boolean isStoringRequests()
public void setStoreReq(boolean storeReq)
storeReq - public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||