Class DefaultResponseEntityToODataResponseConverter

java.lang.Object
de.hybris.platform.odata2services.converter.DefaultResponseEntityToODataResponseConverter
All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<org.springframework.http.ResponseEntity<String>,org.apache.olingo.odata2.api.processor.ODataResponse>

public class DefaultResponseEntityToODataResponseConverter extends Object implements org.springframework.core.convert.converter.Converter<org.springframework.http.ResponseEntity<String>,org.apache.olingo.odata2.api.processor.ODataResponse>
This class will convert a ResponseEntity to an ODataResponse. Normally the conversion happens when a OData service or class will be used and an OData object is needed.
  • Constructor Details

    • DefaultResponseEntityToODataResponseConverter

      public DefaultResponseEntityToODataResponseConverter(@NotNull @NotNull org.springframework.core.convert.converter.Converter<org.springframework.http.HttpHeaders,Map<String,String>> httpHeaderToMapConverter)
  • Method Details

    • convert

      public org.apache.olingo.odata2.api.processor.ODataResponse convert(org.springframework.http.ResponseEntity<String> responseEntity)
      Specified by:
      convert in interface org.springframework.core.convert.converter.Converter<org.springframework.http.ResponseEntity<String>,org.apache.olingo.odata2.api.processor.ODataResponse>