Class BatchRequestDsml

    • Constructor Detail

      • BatchRequestDsml

        public BatchRequestDsml()
        Creates a new instance of BatchResponseDsml.
    • Method Detail

      • addRequest

        public boolean addRequest​(DsmlDecorator<? extends Request> request)
        Adds a request to the Batch Request DSML.
        Parameters:
        request - the request to add
        Returns:
        true (as per the general contract of the Collection.add method).
      • removeRequest

        public boolean removeRequest​(DsmlDecorator<? extends Request> request)
        Removes a request from the Batch Request DSML.
        Parameters:
        request - the request to remove
        Returns:
        true if this list contained the specified element.
      • getRequestID

        public int getRequestID()
        Gets the ID of the request
        Returns:
        the ID of the request
      • setRequestID

        public void setRequestID​(int requestID)
        Sets the ID of the request
        Parameters:
        requestID - the ID to set
      • setOnError

        public void setOnError​(BatchRequestDsml.OnError onError)
        Sets the on error handling type of the request
        Parameters:
        onError - the on error handling type to set
      • getRequests

        public List<DsmlDecorator<? extends Request>> getRequests()
        Gets the List of all the requests in the Batch Request
        Returns:
        the List of all the requests in the Batch Request
      • toDsml

        public String toDsml()
        Converts this Batch Request to its XML representation in the DSMLv2 format.
        Returns:
        the XML representation in DSMLv2 format
      • isStoringRequests

        public boolean isStoringRequests()
        Returns:
        true if the request objects are stored, false otherwise
      • setStoreReq

        public 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
        Parameters:
        storeReq - Tells if the request objects must be stored or not