Class BatchPersistenceHandler
java.lang.Object
de.hybris.platform.odata2services.odata.processor.handler.persistence.batch.BatchPersistenceHandler
- All Implemented Interfaces:
ODataProcessorHandler<BatchParam,org.apache.olingo.odata2.api.processor.ODataResponse>
public class BatchPersistenceHandler
extends Object
implements ODataProcessorHandler<BatchParam,org.apache.olingo.odata2.api.processor.ODataResponse>
ODataProcessor handler that persists a batch request
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ODataServicesConfigurationorg.apache.olingo.odata2.api.processor.ODataResponsehandle(BatchParam param) voidsetODataServicesConfiguration(ODataServicesConfiguration oDataServicesConfiguration) protected org.apache.olingo.odata2.api.processor.ODataResponsewriteBatchResponse(List<org.apache.olingo.odata2.api.batch.BatchResponsePart> responseParts) Writes the listBatchResponsePartin aODataResponse
-
Constructor Details
-
BatchPersistenceHandler
public BatchPersistenceHandler()
-
-
Method Details
-
handle
public org.apache.olingo.odata2.api.processor.ODataResponse handle(BatchParam param) throws org.apache.olingo.odata2.api.exception.ODataException - Specified by:
handlein interfaceODataProcessorHandler<BatchParam,org.apache.olingo.odata2.api.processor.ODataResponse> - Throws:
org.apache.olingo.odata2.api.exception.ODataException
-
writeBatchResponse
protected org.apache.olingo.odata2.api.processor.ODataResponse writeBatchResponse(List<org.apache.olingo.odata2.api.batch.BatchResponsePart> responseParts) throws org.apache.olingo.odata2.api.batch.BatchException Writes the listBatchResponsePartin aODataResponse- Parameters:
responseParts- Responses- Returns:
- an ODataResponse
- Throws:
org.apache.olingo.odata2.api.batch.BatchException- is thrown if writing has a failure
-
getODataServicesConfiguration
-
setODataServicesConfiguration
-