Class DefaultResponseWriter
- java.lang.Object
-
- de.hybris.platform.odata2services.odata.processor.writer.DefaultResponseWriter
-
- All Implemented Interfaces:
ResponseWriter
public class DefaultResponseWriter extends java.lang.Object implements ResponseWriter
Default implementation of theResponseWriter
-
-
Constructor Summary
Constructors Constructor Description DefaultResponseWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ResponseWriterPropertyPopulatorRegistrygetPopulatorRegistry()voidsetPopulatorRegistry(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, java.util.Map<java.lang.String,java.lang.Object> data)Writes a single data set as anODataResponseprotected org.apache.olingo.odata2.api.processor.ODataResponsewrite(java.lang.String contentType, org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, java.util.List<java.util.Map<java.lang.String,java.lang.Object>> feeds, org.apache.olingo.odata2.api.ep.EntityProviderWriteProperties properties)protected org.apache.olingo.odata2.api.processor.ODataResponsewrite(java.lang.String contentType, org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, java.util.Map<java.lang.String,java.lang.Object> data, org.apache.olingo.odata2.api.ep.EntityProviderWriteProperties writeProperties)
-
-
-
Method Detail
-
write
public org.apache.olingo.odata2.api.processor.ODataResponse write(ItemLookupRequest itemLookupRequest, org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, java.util.Map<java.lang.String,java.lang.Object> data) throws org.apache.olingo.odata2.api.exception.ODataException
Description 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(java.lang.String contentType, org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, java.util.Map<java.lang.String,java.lang.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(java.lang.String contentType, org.apache.olingo.odata2.api.edm.EdmEntitySet entitySet, java.util.List<java.util.Map<java.lang.String,java.lang.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)
-
-