Author: mibo
Date: Wed Feb 10 14:04:53 2016
New Revision: 1729604

URL: http://svn.apache.org/viewvc?rev=1729604&view=rev
Log:
Fixed wrong code snippet

Modified:
    
olingo/site/trunk/content/doc/odata2/tutorials/Olingo_Tutorial_AdvancedReadWrite_Batch.mdtext

Modified: 
olingo/site/trunk/content/doc/odata2/tutorials/Olingo_Tutorial_AdvancedReadWrite_Batch.mdtext
URL: 
http://svn.apache.org/viewvc/olingo/site/trunk/content/doc/odata2/tutorials/Olingo_Tutorial_AdvancedReadWrite_Batch.mdtext?rev=1729604&r1=1729603&r2=1729604&view=diff
==============================================================================
--- 
olingo/site/trunk/content/doc/odata2/tutorials/Olingo_Tutorial_AdvancedReadWrite_Batch.mdtext
 (original)
+++ 
olingo/site/trunk/content/doc/odata2/tutorials/Olingo_Tutorial_AdvancedReadWrite_Batch.mdtext
 Wed Feb 10 14:04:53 2016
@@ -28,19 +28,19 @@ The following example shows a possible i
 **Sample Code**
 
     @Override
-      public ODataResponse executeBatch(final BatchHandler handler, final 
String contentType, final InputStream content) throws ODataException {
-        ODataResponse batchResponse;
-        List<BatchResponsePart> batchResponseParts = new 
ArrayList<BatchResponsePart>();
-        PathInfo pathInfo = getContext().getPathInfo();
-        EntityProviderBatchProperties batchProperties = 
EntityProviderBatchProperties.init().pathInfo(pathInfo).build();
-        List<BatchRequestPart> batchRequestParts = 
EntityProvider.parseBatchRequest(contentType, content, batchProperties);
-        for (BatchPart batchPart : batchRequestParts) {
-          BatchResponsePart processedBatchPart = 
handler.handleBatchPart(batchRequestPart)
-          batchResponseParts.add(processedBatchPart);
-        }
-        batchResponse = EntityProvider.writeBatchResponse(batchResponseParts);
-        return batchResponse;
+    public ODataResponse executeBatch(final BatchHandler handler, final String 
contentType, final InputStream content)
+        throws ODataException {
+      ODataResponse batchResponse;
+      List<BatchResponsePart> batchResponseParts = new 
ArrayList<BatchResponsePart>();
+      PathInfo pathInfo = getContext().getPathInfo();
+      EntityProviderBatchProperties batchProperties = 
EntityProviderBatchProperties.init().pathInfo(pathInfo).build();
+      List<BatchRequestPart> batchParts = 
EntityProvider.parseBatchRequest(contentType, content, batchProperties);
+      for (BatchRequestPart batchPart : batchParts) {
+        batchResponseParts.add(handler.handleBatchPart(batchPart));
       }
+      batchResponse = EntityProvider.writeBatchResponse(batchResponseParts);
+      return batchResponse;
+    }
 
 
 **NOTE:** The parameter batchProperties of the method parseBatchRequest 
contains OData URI informations as PathInfo-object. These informations are 
necessary for the parsing, that's why the PathInfo-object should not be null.


Reply via email to