You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@olingo.apache.org by mi...@apache.org on 2016/11/16 19:14:40 UTC
svn commit: r1770040 -
/olingo/site/trunk/content/doc/odata4/tutorials/batch/tutorial_batch.mdtext
Author: mibo
Date: Wed Nov 16 19:14:40 2016
New Revision: 1770040
URL: http://svn.apache.org/viewvc?rev=1770040&view=rev
Log:
CMS commit to olingo by mibo
Modified:
olingo/site/trunk/content/doc/odata4/tutorials/batch/tutorial_batch.mdtext
Modified: olingo/site/trunk/content/doc/odata4/tutorials/batch/tutorial_batch.mdtext
URL: http://svn.apache.org/viewvc/olingo/site/trunk/content/doc/odata4/tutorials/batch/tutorial_batch.mdtext?rev=1770040&r1=1770039&r2=1770040&view=diff
==============================================================================
--- olingo/site/trunk/content/doc/odata4/tutorials/batch/tutorial_batch.mdtext (original)
+++ olingo/site/trunk/content/doc/odata4/tutorials/batch/tutorial_batch.mdtext Wed Nov 16 19:14:40 2016
@@ -173,12 +173,12 @@ Now the requests have to be executed by
The last steps are to serialize the responses and setup the response of the batch request.
::::java
- // 5. Serialize the response content
- final InputStream responseContent = odata.createFixedFormatSerializer().batchResponse(responseParts, boundary);
-
- // 6. Create a new boundary for the response
+ // 5. Create a new boundary for the response
final String responseBoundary = "batch_" + UUID.randomUUID().toString();
+ // 6. Serialize the response content
+ final InputStream responseContent = odata.createFixedFormatSerializer().batchResponse(responseParts, responseBoundary);
+
// 7. Setup response
response.setHeader(HttpHeader.CONTENT_TYPE, ContentType.MULTIPART_MIXED + ";boundary=" + responseBoundary);
response.setContent(responseContent);