Class DefaultRequestBatchEntityExtractor

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.io.InputStream combineChangeSetsToSingleBatch​(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 ODataServicesConfiguration getConfiguration()  
      protected org.apache.olingo.odata2.api.ep.EntityProviderBatchProperties getProps​(org.apache.olingo.odata2.api.processor.ODataContext context)  
      protected org.apache.olingo.odata2.api.processor.ODataRequest getRequest​(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 RequestBatchEntity handleBatchPart​(org.apache.olingo.odata2.api.batch.BatchRequestPart part, org.apache.olingo.odata2.api.processor.ODataContext context)  
      protected RequestBatchEntity requestEntity​(org.apache.olingo.odata2.api.processor.ODataContext context, java.io.InputStream body, int numberOfChangesetsInBatch)  
      void setConfiguration​(ODataServicesConfiguration configuration)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultRequestBatchEntityExtractor

        public DefaultRequestBatchEntityExtractor()
    • Method Detail

      • extractFrom

        public java.util.List<RequestBatchEntity> extractFrom​(org.apache.olingo.odata2.api.processor.ODataContext context)
        Description copied from interface: RequestBatchEntityExtractor
        Extracts request entity.
        Specified by:
        extractFrom in interface RequestBatchEntityExtractor
        Parameters:
        context - the ODataContext which contains the ODataRequest as 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)