Class DefaultBatchRequestGenerator

java.lang.Object
de.hybris.platform.outboundservices.batch.DefaultBatchRequestGenerator
All Implemented Interfaces:
MultiPartRequestGenerator

public class DefaultBatchRequestGenerator extends Object implements MultiPartRequestGenerator
Generates an OData2 batch request from a list of individual requests. Batch Request has the certain Content-type that requires a boundary parameter.
  • Constructor Details

  • Method Details

    • generate

      public org.springframework.http.HttpEntity<String> generate(List<OutboundBatchRequestPartDTO> requestDTOs)
      Generates an OData2 batch http request from a list of OutboundBatchRequestPartDTO that represent individual http requests.
      Specified by:
      generate in interface MultiPartRequestGenerator
      Parameters:
      requestDTOs - List of DTOs that contain each individual request and their model type
      Returns:
      org.springframework.http.HttpEntity<String> containing the String body of the batch request payload and the necessary headers