Class DefaultRequestBatchEntityExtractor
- java.lang.Object
-
- de.hybris.platform.odata2services.odata.monitoring.impl.DefaultRequestBatchEntityExtractor
-
- All Implemented Interfaces:
RequestBatchEntityExtractor
public class DefaultRequestBatchEntityExtractor extends java.lang.Object implements RequestBatchEntityExtractor
-
-
Constructor Summary
Constructors Constructor Description DefaultRequestBatchEntityExtractor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.io.InputStreamcombineChangeSetsToSingleBatch(java.util.List<org.apache.olingo.odata2.api.processor.ODataRequest> requests)protected java.util.List<RequestBatchEntity>extractBatchRequests(org.apache.olingo.odata2.api.processor.ODataContext context)java.util.List<RequestBatchEntity>extractFrom(org.apache.olingo.odata2.api.processor.ODataContext context)Extracts request entity.protected ODataServicesConfigurationgetConfiguration()protected org.apache.olingo.odata2.api.ep.EntityProviderBatchPropertiesgetProps(org.apache.olingo.odata2.api.processor.ODataContext context)protected org.apache.olingo.odata2.api.processor.ODataRequestgetRequest(org.apache.olingo.odata2.api.processor.ODataContext context)protected java.util.List<org.apache.olingo.odata2.api.batch.BatchRequestPart>getRequestParts(org.apache.olingo.odata2.api.processor.ODataContext context, org.apache.olingo.odata2.core.batch.v2.BatchParser batchParser)protected RequestBatchEntityhandleBatchPart(org.apache.olingo.odata2.api.batch.BatchRequestPart part, org.apache.olingo.odata2.api.processor.ODataContext context)protected RequestBatchEntityrequestEntity(org.apache.olingo.odata2.api.processor.ODataContext context, java.io.InputStream body, int numberOfChangesetsInBatch)voidsetConfiguration(ODataServicesConfiguration configuration)
-
-
-
Method Detail
-
extractFrom
public java.util.List<RequestBatchEntity> extractFrom(org.apache.olingo.odata2.api.processor.ODataContext context)
Description copied from interface:RequestBatchEntityExtractorExtracts request entity.- Specified by:
extractFromin interfaceRequestBatchEntityExtractor- Parameters:
context- theODataContextwhich contains theODataRequestas well as other relevant request information- Returns:
- a collection of extracted entities. A valid request should contain at least one entity.
-
extractBatchRequests
protected java.util.List<RequestBatchEntity> extractBatchRequests(org.apache.olingo.odata2.api.processor.ODataContext context)
-
handleBatchPart
protected RequestBatchEntity handleBatchPart(org.apache.olingo.odata2.api.batch.BatchRequestPart part, org.apache.olingo.odata2.api.processor.ODataContext context)
-
combineChangeSetsToSingleBatch
protected java.io.InputStream combineChangeSetsToSingleBatch(java.util.List<org.apache.olingo.odata2.api.processor.ODataRequest> requests)
-
getProps
protected org.apache.olingo.odata2.api.ep.EntityProviderBatchProperties getProps(org.apache.olingo.odata2.api.processor.ODataContext context)
-
requestEntity
protected RequestBatchEntity requestEntity(org.apache.olingo.odata2.api.processor.ODataContext context, java.io.InputStream body, int numberOfChangesetsInBatch)
-
getRequestParts
protected java.util.List<org.apache.olingo.odata2.api.batch.BatchRequestPart> getRequestParts(org.apache.olingo.odata2.api.processor.ODataContext context, org.apache.olingo.odata2.core.batch.v2.BatchParser batchParser)
-
getRequest
protected org.apache.olingo.odata2.api.processor.ODataRequest getRequest(org.apache.olingo.odata2.api.processor.ODataContext context)
-
getConfiguration
protected ODataServicesConfiguration getConfiguration()
-
setConfiguration
public void setConfiguration(ODataServicesConfiguration configuration)
-
-