Class DefaultOutboundBatchResponseParser

java.lang.Object
de.hybris.platform.outboundservices.batch.DefaultOutboundBatchResponseParser
All Implemented Interfaces:
OutboundMultiPartResponseParser

public class DefaultOutboundBatchResponseParser extends Object implements OutboundMultiPartResponseParser
A default implementation of OutboundMultiPartResponseParser. The default olingo parser is used here, and it returns a list of BatchSingleResponse. To use the olingo parser, the input ResponseEntity will be converted to ODataResponse. To be used in other modules that don't have dependency on OData, the ODataResponse will be converted to ResponseEntity and returned.
  • Constructor Details

    • DefaultOutboundBatchResponseParser

      public DefaultOutboundBatchResponseParser(@NotNull @NotNull org.springframework.core.convert.converter.Converter<org.springframework.http.ResponseEntity<String>,org.apache.olingo.odata2.api.processor.ODataResponse> converter)
  • Method Details

    • parseMultiPartResponse

      public List<org.springframework.http.ResponseEntity<Map>> parseMultiPartResponse(org.springframework.http.ResponseEntity<String> responseEntity)
      Parse a ResponseEntity as a batch response.
      Specified by:
      parseMultiPartResponse in interface OutboundMultiPartResponseParser
      Parameters:
      responseEntity - The response for the batch request sent out in outboundSync, could contain multiple batch parts which consist of multiple responses.
      Returns:
      a list of ResponseEntity that compose the batch response.