Class DefaultResponseWriter
java.lang.Object
de.hybris.platform.odata2services.odata.processor.writer.DefaultResponseWriter
- All Implemented Interfaces:
ResponseWriter
Default implementation of the
ResponseWriter-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ResponseWriterPropertyPopulatorRegistryvoidsetPopulatorRegistry(ResponseWriterPropertyPopulatorRegistry populatorRegistry) org.apache.olingo.odata2.api.processor.ODataResponsewrite(ItemLookupRequest request, org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, ItemLookupResult<org.apache.olingo.odata2.api.ep.entry.ODataEntry> result) Writes a collection of data set as an ODataResponseorg.apache.olingo.odata2.api.processor.ODataResponsewrite(ItemLookupRequest itemLookupRequest, org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, Map<String, Object> data) Writes a single data set as anODataResponseprotected org.apache.olingo.odata2.api.processor.ODataResponsewrite(String contentType, org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, List<Map<String, Object>> feeds, org.apache.olingo.odata2.api.ep.EntityProviderWriteProperties properties) protected org.apache.olingo.odata2.api.processor.ODataResponsewrite(String contentType, org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, Map<String, Object> data, org.apache.olingo.odata2.api.ep.EntityProviderWriteProperties writeProperties)
-
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.ODataExceptionDescription copied from interface:ResponseWriterWrites a single data set as anODataResponse- Specified by:
writein interfaceResponseWriter- Parameters:
itemLookupRequest- Parameter object containing the information for the writeentitySet- Entity set the data belong todata- 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:ResponseWriterWrites a collection of data set as an ODataResponse- Specified by:
writein interfaceResponseWriter- Parameters:
request- Parameter object containing the information for the writeentitySet- Entity set the data belong toresult- 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
-
setPopulatorRegistry
-