Class DefaultRequestBatchEntityExtractor
java.lang.Object
de.hybris.platform.odata2services.odata.monitoring.impl.DefaultRequestBatchEntityExtractor
- All Implemented Interfaces:
RequestBatchEntityExtractor
public class DefaultRequestBatchEntityExtractor
extends Object
implements RequestBatchEntityExtractor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected InputStreamcombineChangeSetsToSingleBatch(List<org.apache.olingo.odata2.api.processor.ODataRequest> requests) protected List<RequestBatchEntity>extractBatchRequests(org.apache.olingo.odata2.api.processor.ODataContext context) extractFrom(org.apache.olingo.odata2.api.processor.ODataContext context) Extracts request entity.protected ODataServicesConfigurationprotected 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 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, InputStream body, int numberOfChangesetsInBatch) voidsetConfiguration(ODataServicesConfiguration configuration)
-
Constructor Details
-
DefaultRequestBatchEntityExtractor
public DefaultRequestBatchEntityExtractor()
-
-
Method Details
-
extractFrom
public 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 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 InputStream combineChangeSetsToSingleBatch(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, InputStream body, int numberOfChangesetsInBatch) -
getRequestParts
protected 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
-
setConfiguration
-