Class DefaultResponseWriter

java.lang.Object
de.hybris.platform.odata2services.odata.processor.writer.DefaultResponseWriter
All Implemented Interfaces:
ResponseWriter

public class DefaultResponseWriter extends Object implements ResponseWriter
Default implementation of the ResponseWriter
  • Constructor Details

    • DefaultResponseWriter

      public DefaultResponseWriter()
  • Method Details

    • write

      public org.apache.olingo.odata2.api.processor.ODataResponse write(ItemLookupRequest itemLookupRequest, org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, Map<String,Object> data) throws org.apache.olingo.odata2.api.exception.ODataException
      Description copied from interface: ResponseWriter
      Writes a single data set as an ODataResponse
      Specified by:
      write in interface ResponseWriter
      Parameters:
      itemLookupRequest - Parameter object containing the information for the write
      entitySet - Entity set the data belong to
      data - Data to write
      Returns:
      ODataResponse
      Throws:
      org.apache.olingo.odata2.api.exception.ODataException
    • write

      public org.apache.olingo.odata2.api.processor.ODataResponse write(ItemLookupRequest request, org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, ItemLookupResult<org.apache.olingo.odata2.api.ep.entry.ODataEntry> result) throws org.apache.olingo.odata2.api.exception.ODataException
      Description copied from interface: ResponseWriter
      Writes a collection of data set as an ODataResponse
      Specified by:
      write in interface ResponseWriter
      Parameters:
      request - Parameter object containing the information for the write
      entitySet - Entity set the data belong to
      result - Collection of data to write
      Returns:
      ODataResponse
      Throws:
      org.apache.olingo.odata2.api.exception.ODataException
    • write

      protected org.apache.olingo.odata2.api.processor.ODataResponse write(String contentType, org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, Map<String,Object> data, org.apache.olingo.odata2.api.ep.EntityProviderWriteProperties writeProperties) throws org.apache.olingo.odata2.api.ep.EntityProviderException
      Throws:
      org.apache.olingo.odata2.api.ep.EntityProviderException
    • write

      protected org.apache.olingo.odata2.api.processor.ODataResponse write(String contentType, org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, List<Map<String,Object>> feeds, org.apache.olingo.odata2.api.ep.EntityProviderWriteProperties properties) throws org.apache.olingo.odata2.api.ep.EntityProviderException
      Throws:
      org.apache.olingo.odata2.api.ep.EntityProviderException
    • getPopulatorRegistry

      protected ResponseWriterPropertyPopulatorRegistry getPopulatorRegistry()
    • setPopulatorRegistry

      public void setPopulatorRegistry(ResponseWriterPropertyPopulatorRegistry populatorRegistry)