Author: buildbot
Date: Wed May 27 10:59:08 2015
New Revision: 952853

Log:
Staging update by buildbot for olingo

Modified:
    websites/staging/olingo/trunk/content/   (props changed)
    
websites/staging/olingo/trunk/content/doc/odata4/tutorials/read/tutorial_read.html
    
websites/staging/olingo/trunk/content/doc/odata4/tutorials/readep/tutorial_readep.html
    
websites/staging/olingo/trunk/content/doc/odata4/tutorials/write/tutorial_write.html

Propchange: websites/staging/olingo/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Wed May 27 10:59:08 2015
@@ -1 +1 @@
-1680924
+1681968

Modified: 
websites/staging/olingo/trunk/content/doc/odata4/tutorials/read/tutorial_read.html
==============================================================================
--- 
websites/staging/olingo/trunk/content/doc/odata4/tutorials/read/tutorial_read.html
 (original)
+++ 
websites/staging/olingo/trunk/content/doc/odata4/tutorials/read/tutorial_read.html
 Wed May 27 10:59:08 2015
@@ -88,7 +88,7 @@
         </div><!--/.container-fluid -->
       </div><!-- Main component for a primary marketing message or call to 
action --><h1 id="how-to-build-an-odata-service-with-olingo-v4">How to build an 
OData Service with Olingo V4</h1>
 <p>This tutorial guides you through the steps required to write an OData 
Service based on the Olingo OData 4.0 Library for Java (based on current 
<em>Olingo 4.0.0-beta-03 release</em> which can be get via the <a 
href="../../download.html">Download-Page</a>).</p>
-<p>The final result can be download <a 
href="sample/DemoService_Tutorial_Read.zip">here</a> (<a 
href="sample/DemoService_Tutorial_Read.zip.md5">md5</a>, <a 
href="sample/DemoService_Tutorial_Read.zip.sha512">sha512</a>, <a 
href="sample/DemoService_Tutorial_Read.zip.asc">pgp</a>).</p>
+<p>The final result can be download <a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_Read.zip";>here</a>
 (<a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_Read.zip.md5";>md5</a>,
 <a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_Read.zip.sha512";>sha512</a>,
 <a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_Read.zip.asc";>pgp</a>).</p>
 <p>We will create a Web Application and deploy it on a local Tomcat server.
 Afterwards, the OData service can be invoked from a browser and it will 
provide the data according to the OData V4 specification.
 This tutorial is kept as simple as possible, in order to fully concentrate on 
the implementation of the service.
@@ -896,13 +896,13 @@ If you face problems related to the serv
 <h1 id="6-summary">6. Summary</h1>
 <p>Finally, we have created our first OData service based on the V4 version of 
the OData specification and using the V4 server library provided by 
<em>Olingo</em>.<br />
 Our first OData service is very simple; it only allows invoking one entity 
collection, apart from the service document and the metadata document.</p>
-<p>The project as final result can be download <a 
href="sample/DemoService_Tutorial_Read.zip">here</a> (<a 
href="sample/DemoService_Tutorial_Read.zip.md5">md5</a>, <a 
href="sample/DemoService_Tutorial_Read.zip.sha512">sha512</a>, <a 
href="sample/DemoService_Tutorial_Read.zip.asc">pgp</a>).</p>
+<p>The project as final result can be download <a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_Read.zip";>here</a>
 (<a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_Read.zip.md5";>md5</a>,
 <a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_Read.zip.sha512";>sha512</a>,
 <a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_Read.zip.asc";>pgp</a>).</p>
 <p><strong>Outlook</strong></p>
 <p>Further topics to be covered by follow-up tutorials:  </p>
 <ul>
-<li>Tutorial OData V4 service part 1: <a 
href="/doc/odata4/tutorials/read/tutorial_read.html">Read Entity Collection 
(this page)</a> | <a href="sample/DemoService_Tutorial_Read.zip">sample 
project</a> (<a href="sample/DemoService_Tutorial_Read.zip.md5">md5</a>, <a 
href="sample/DemoService_Tutorial_Read.zip.sha512">sha512</a>, <a 
href="sample/DemoService_Tutorial_Read.zip.asc">pgp</a>).</li>
-<li>Tutorial OData V4 service part 2: <a 
href="/doc/odata4/tutorials/readep/tutorial_readep.html">Read Entity, Read 
Property</a> | <a 
href="/doc/odata4/tutorials/readep/sample/DemoService_Tutorial_ReadEp.zip">sample
 project zip</a> (<a href="sample/DemoService_Tutorial_ReadEp.zip.md5">md5</a>, 
<a href="sample/DemoService_Tutorial_ReadEp.zip.sha512">sha512</a>, <a 
href="sample/DemoService_Tutorial_ReadEp.zip.asc">pgp</a>)  </li>
-<li>Tutorial OData V4 service part 3: <a 
href="/doc/odata4/tutorials/write/tutorial_write.html">Write (Create, Update, 
Delete Entity)</a> | <a 
href="/doc/odata4/tutorials/write/sample/DemoService_Tutorial_Write.zip">sample 
project zip</a> (<a href="sample/DemoService_Tutorial_Write.zip.md5">md5</a>, 
<a href="sample/DemoService_Tutorial_Write.zip.zip.sha512">sha512</a>, <a 
href="sample/DemoService_Tutorial_Write.zip.asc">pgp</a>)  </li>
+<li>Tutorial OData V4 service part 1: <a 
href="/doc/odata4/tutorials/read/tutorial_read.html">Read Entity Collection 
(this page)</a> | <a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_Read.zip";>sample
 project</a> (<a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_Read.zip.md5";>md5</a>,
 <a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_Read.zip.sha512";>sha512</a>,
 <a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_Read.zip.asc";>pgp</a>).</li>
+<li>Tutorial OData V4 service part 2: <a 
href="/doc/odata4/tutorials/readep/tutorial_readep.html">Read Entity, Read 
Property</a> | <a 
href="/doc/odata4/tutorials/readep/sample/DemoService_Tutorial_ReadEp.zip">sample
 project zip</a> (<a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_ReadEp.zip.md5";>md5</a>,
 <a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_ReadEp.zip.sha512";>sha512</a>,
 <a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_ReadEp.zip.asc";>pgp</a>)
  </li>
+<li>Tutorial OData V4 service part 3: <a 
href="/doc/odata4/tutorials/write/tutorial_write.html">Write (Create, Update, 
Delete Entity)</a> | <a 
href="/doc/odata4/tutorials/write/sample/DemoService_Tutorial_Write.zip">sample 
project zip</a> (<a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_Write.zip.md5";>md5</a>,
 <a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_Write.zip.zip.sha512";>sha512</a>,
 <a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_Write.zip.asc";>pgp</a>)
  </li>
 <li>Tutorial OData V4 service part 4: <a href="...">Navigation - (To Be 
Announced)</a>  </li>
 </ul>
 <p><strong>Further reading</strong></p>

Modified: 
websites/staging/olingo/trunk/content/doc/odata4/tutorials/readep/tutorial_readep.html
==============================================================================
--- 
websites/staging/olingo/trunk/content/doc/odata4/tutorials/readep/tutorial_readep.html
 (original)
+++ 
websites/staging/olingo/trunk/content/doc/odata4/tutorials/readep/tutorial_readep.html
 Wed May 27 10:59:08 2015
@@ -97,7 +97,7 @@ These 2 topics will be covered in the pr
 <p>Note that this tutorial doesn’t cover modifying operations like create, 
update and delete.
 Such operations will be the focus of the Olingo V4 tutorial no. 3</p>
 <p><strong>Note</strong><br />
-The full implementation of the OData service as described in the present 
tutorial can be found in the <a 
href="/doc/odata4/tutorials/readep/sample/DemoService_Tutorial_ReadEp.zip">attached
 zip file</a> (<a href="sample/DemoService_Tutorial_ReadEp.zip.md5">md5</a>, <a 
href="sample/DemoService_Tutorial_ReadEp.zip.sha512">sha512</a>, <a 
href="sample/DemoService_Tutorial_ReadEp.zip.asc">pgp</a>) that contains an 
Eclipse project that can be imported into your Eclipse workspace.</p>
+The full implementation of the OData service as described in the present 
tutorial can be found in the <a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_ReadEp.zip";>attached
 zip file</a> (<a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_ReadEp.zip.md5";>md5</a>,
 <a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_ReadEp.zip.sha512";>sha512</a>,
 <a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_ReadEp.zip.asc";>pgp</a>)
 that contains an Eclipse project that can be imported into your Eclipse 
workspace.</p>
 <p><strong>Disclaimer</strong><br />
 Again, in the present tutorial, We will focus only on the relevant 
implementation, in order to keep the code small and simple.
 The sample code shouldn't be reused for advanced scenarios.</p>
@@ -793,9 +793,9 @@ It has been based on a simple OData mode
 <hr />
 <h1 id="6-links">6. Links</h1>
 <ul>
-<li>Tutorial OData V4 service part 1: <a 
href="/doc/odata4/tutorials/read/tutorial_read.html">Read Entity Collection</a> 
| <a href="sample/DemoService_Tutorial_Read.zip">sample project</a> (<a 
href="sample/DemoService_Tutorial_Read.zip.md5">md5</a>, <a 
href="sample/DemoService_Tutorial_Read.zip.sha512">sha512</a>, <a 
href="sample/DemoService_Tutorial_Read.zip.asc">pgp</a>).</li>
-<li>Tutorial OData V4 service part 2: <a 
href="/doc/odata4/tutorials/readep/tutorial_readep.html">Read Entity, Read 
Property (this page)</a> | <a 
href="/doc/odata4/tutorials/readep/sample/DemoService_Tutorial_ReadEp.zip">sample
 project zip</a> (<a href="sample/DemoService_Tutorial_ReadEp.zip.md5">md5</a>, 
<a href="sample/DemoService_Tutorial_ReadEp.zip.sha512">sha512</a>, <a 
href="sample/DemoService_Tutorial_ReadEp.zip.asc">pgp</a>)  </li>
-<li>Tutorial OData V4 service part 3: <a 
href="/doc/odata4/tutorials/write/tutorial_write.html">Write (Create, Update, 
Delete Entity)</a> | <a 
href="/doc/odata4/tutorials/write/sample/DemoService_Tutorial_Write.zip">sample 
project zip</a> (<a href="sample/DemoService_Tutorial_Write.zip.md5">md5</a>, 
<a href="sample/DemoService_Tutorial_Write.zip.zip.sha512">sha512</a>, <a 
href="sample/DemoService_Tutorial_Write.zip.asc">pgp</a>)  </li>
+<li>Tutorial OData V4 service part 1: <a 
href="/doc/odata4/tutorials/read/tutorial_read.html">Read Entity Collection</a> 
| <a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_Read.zip";>sample
 project</a> (<a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_Read.zip.md5";>md5</a>,
 <a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_Read.zip.sha512";>sha512</a>,
 <a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_Read.zip.asc";>pgp</a>).</li>
+<li>Tutorial OData V4 service part 2: <a 
href="/doc/odata4/tutorials/readep/tutorial_readep.html">Read Entity, Read 
Property (this page)</a> | <a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_ReadEp.zip";>sample
 project zip</a> (<a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_ReadEp.zip.md5";>md5</a>,
 <a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_ReadEp.zip.sha512";>sha512</a>,
 <a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_ReadEp.zip.asc";>pgp</a>)
  </li>
+<li>Tutorial OData V4 service part 3: <a 
href="/doc/odata4/tutorials/write/tutorial_write.html">Write (Create, Update, 
Delete Entity)</a> | <a 
href="/doc/odata4/tutorials/write/sample/DemoService_Tutorial_Write.zip">sample 
project zip</a> (<a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_Write.zip.md5";>md5</a>,
 <a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_Write.zip.zip.sha512";>sha512</a>,
 <a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_Write.zip.asc";>pgp</a>)
  </li>
 </ul>
 <p>OData specification: <a href="http://odata.org/";>http://odata.org/</a><br />
 Olingo Javadoc: <a 
href="/javadoc/odata4/index.html">http://olingo.apache.org/javadoc/odata4/index.html</a></p><div
 align="center">

Modified: 
websites/staging/olingo/trunk/content/doc/odata4/tutorials/write/tutorial_write.html
==============================================================================
--- 
websites/staging/olingo/trunk/content/doc/odata4/tutorials/write/tutorial_write.html
 (original)
+++ 
websites/staging/olingo/trunk/content/doc/odata4/tutorials/write/tutorial_write.html
 Wed May 27 10:59:08 2015
@@ -92,8 +92,8 @@
 <p>This tutorial guides you through the steps required to write an OData 
Service based on the Olingo OData 4.0 Library for Java (based on current 
<em>Olingo 4.0.0-beta-03</em> release which can be get via the <a 
href="/doc/odata4/download.html">Download-Page</a>).</p>
 <p>In the first two tutorials (<a 
href="/doc/odata4/tutorials/read/tutorial_read.html">Read Collection</a> and <a 
href="/doc/odata4/tutorials/readep/tutorial_readep.html">Read Entity</a>), 
we’ve learned how to build a simple OData service that supports read 
operations for collection, single entity and property.</p>
 <p>In the present tutorial, will cover the write operations, which means 
creating an entity, modifying an existing entity and deleting an existing 
entity.</p>
-<p><strong>Note</strong><br />
-The full implementation of the OData service as described in the present 
tutorial can be found in the <a 
href="/doc/odata4/tutorials/write/sample/DemoService_Tutorial_Write.zip">attached
 zip file</a> (<a 
href="/doc/odata4/tutorials/write/sample/DemoService_Tutorial_Write.zip.md5">md5</a>,
 <a 
href="/doc/odata4/tutorials/write/sample/DemoService_Tutorial_Write.zip.sha512">sha512</a>,
 <a 
href="/doc/odata4/tutorials/write/sample/DemoService_Tutorial_Write.zip.asc">pgp</a>)
 that contains an Eclipse project that can be imported into your Eclipse 
workspace.</p>
+<p><strong>Note</strong>
+The full implementation of the OData service as described in the present 
tutorial can be found in the <a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_Write.zip";>attached
 zip file</a> (<a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_Write.zip.md5";>md5</a>,
 <a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_Write.zip.sha512";>sha512</a>,
 <a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_Write.zip.asc";>pgp</a>)
 that contains an Eclipse project that can be imported into your Eclipse 
workspace.</p>
 <p><strong>Disclaimer</strong>
 Again, in the present tutorial, will focus only on the relevant 
implementation, in order to keep the code small and simple.
 The sample code shouldn't be reused for advanced scenarios.</p>
@@ -132,12 +132,12 @@ The Olingo library takes this user reque
 <p>In the previous tutorial 2, we’ve already implemented the 
<code>EntityProcessor</code> interface and registered our class in the servlet, 
but we have not written the implementation for the callback methods that are 
responsible for the write operations.
 This is what we are going to do in the below sections.</p>
 <h2 id="31-implement-the-createentity-method">3.1. Implement the 
createEntity(...) method</h2>
-<p>Open the class 
<code>myservice.mynamespace.service.DemoEntityProcessor</code><br />
-Go to the method <code>createEntity(...)</code><br />
+<p>Open the class 
<code>myservice.mynamespace.service.DemoEntityProcessor</code>
+Go to the method <code>createEntity(...)</code>
 The method body should be empty, otherwise delete any content.</p>
-<p><strong>Now, how to implement the method?</strong><br />
-Basically, we have to do the same that we did in the 
<code>readEntity(...)</code> method, but the other way ‘round.<br />
-In the <code>createEntity(...)</code> method, we have to retrieve the payload 
from the request and then write it to our mock-database.<br />
+<p><strong>Now, how to implement the method?</strong>
+Basically, we have to do the same that we did in the 
<code>readEntity(...)</code> method, but the other way ‘round.
+In the <code>createEntity(...)</code> method, we have to retrieve the payload 
from the request and then write it to our mock-database.
 Furthermore, we have to return the created entity in the response payload.</p>
 <p>Again, we can divide our work into 4 steps:</p>
 <ol>
@@ -164,12 +164,12 @@ Furthermore, we have to return the creat
 <p><strong>Steps</strong></p>
 <ol>
 <li>In the implementation, we have to first retrieve the 
<code>EntityCollection</code> and <code>EntityType</code> metadata from the 
<code>UriInfo</code> object.</li>
-<li>The next step is to create the data in our backend.<br />
-  For this purpose, we have to retrieve the data from the HTTP request 
payload.<br />
+<li>The next step is to create the data in our backend.
+  For this purpose, we have to retrieve the data from the HTTP request payload.
   We get the payload from the <code>ODataRequest</code> instance as 
<code>InputStream</code>, which can then be deserialized.
   Our <code>Storage</code> class is responsible for creating the new product 
in the backend.
-  And for returning the newly created instance.<br />
-  The reason is that our OData service has to return the newly created entity 
in the response body.  </li>
+  And for returning the newly created instance.
+  The reason is that our OData service has to return the newly created entity 
in the response body.</li>
 <li>From now on the procedure is the same like in the 
<code>readEntity(...)</code> method</li>
 <li>The only difference is the status code, that has to be set to <strong>201 
- created</strong> in case of success</li>
 </ol>
@@ -224,7 +224,7 @@ Furthermore, we have to return the creat
 </pre></div>
 
 
-<p>The <code>updateEntity(...)</code> method is similar.<br />
+<p>The <code>updateEntity(...)</code> method is similar.
 Again, we have to retrieve the payload from the HTTP request and use it for 
modifying the data in backend.
 The difference is that case of update operation, the OData service is not 
expected to return any response payload. So we can skip the serialize-step and 
simply set the HTTP status code to <strong>204 – no content</strong></p>
 <div class="codehilite"><pre><span class="kd">public</span> <span 
class="kt">void</span> <span class="nf">updateEntity</span><span 
class="o">(</span><span class="n">ODataRequest</span> <span 
class="n">request</span><span class="o">,</span> <span 
class="n">ODataResponse</span> <span class="n">response</span><span 
class="o">,</span> <span class="n">UriInfo</span> <span 
class="n">uriInfo</span><span class="o">,</span>
@@ -257,14 +257,14 @@ The difference is that case of update op
 </pre></div>
 
 
-<p>In case of update, we have to consider the following:<br />
-The update of an entity can be realized in 2 ways: either a 
<strong>PATCH</strong> or a <strong>PUT</strong> request.<br />
+<p>In case of update, we have to consider the following:
+The update of an entity can be realized in 2 ways: either a 
<strong>PATCH</strong> or a <strong>PUT</strong> request.
 (See the online specification in section <a 
href="http://docs.oasis-open.org/odata/odata/v4.0/odata-v4.0-part1-protocol.html";>11.4.3
 Update an Entity</a> for more details.
-For both HTTP methods, our <code>updateEntity(...)</code> will be invoked.<br 
/>
-But we have to treat the data-modification differently.<br />
-Therefore, we have to first retrieve the used HTTP method and in the 
backend-logic, we have to distinguish between <strong>PATCH</strong> and 
<strong>PUT</strong>.<br />
-The difference becomes relevant only in case if the user doesn’t send all 
the properties in the request body.  </p>
-<p>Example: if we modify the above example request body to look as follows:  
</p>
+For both HTTP methods, our <code>updateEntity(...)</code> will be invoked.
+But we have to treat the data-modification differently.
+Therefore, we have to first retrieve the used HTTP method and in the 
backend-logic, we have to distinguish between <strong>PATCH</strong> and 
<strong>PUT</strong>.
+The difference becomes relevant only in case if the user doesn’t send all 
the properties in the request body.</p>
+<p>Example: if we modify the above example request body to look as follows:</p>
 <div class="codehilite"><pre><span class="p">{</span>
   <span class="nt">&quot;Description&quot;</span><span class="p">:</span><span 
class="s2">&quot;updated description&quot;</span>
 <span class="p">}</span>
@@ -273,12 +273,12 @@ The difference becomes relevant only in
 
 <p>Note that in this case, only one of three properties is sent in the request 
body.</p>
 <ul>
-<li>If the HTTP method is <strong>PATCH</strong>:<br />
-    The value of the <em>Description</em> property is updated in the 
backend.<br />
+<li>If the HTTP method is <strong>PATCH</strong>:
+    The value of the <em>Description</em> property is updated in the backend.
     The values of the other properties remain untouched.</li>
-<li>If the HTTP method is <strong>PUT</strong>:<br />
-    The value of the <em>Description</em> property is updated in the 
backend.<br />
-    The value of the other properties is set to null (exception: key 
properties can never be null).  </li>
+<li>If the HTTP method is <strong>PUT</strong>:
+    The value of the <em>Description</em> property is updated in the backend.
+    The value of the other properties is set to null (exception: key 
properties can never be null).</li>
 </ul>
 <p>So let’s have a look at our sample implementation in the 
<code>Storage</code> class (see below for full sample code and also see the 
attached zip file containing the whole sample project)</p>
 <div class="codehilite"><pre><span class="kd">private</span> <span 
class="kt">void</span> <span class="nf">updateProduct</span><span 
class="o">(</span><span class="n">EdmEntityType</span> <span 
class="n">edmEntityType</span><span class="o">,</span> <span 
class="n">List</span><span class="o">&lt;</span><span 
class="n">UriParameter</span><span class="o">&gt;</span> <span 
class="n">keyParams</span><span class="o">,</span> <span 
class="n">Entity</span> <span class="n">entity</span><span class="o">,</span> 
<span class="n">HttpMethod</span> <span class="n">httpMethod</span><span 
class="o">)</span>
@@ -330,12 +330,12 @@ The difference becomes relevant only in
 </pre></div>
 
 
-<p>The implementation is rather simple:  </p>
+<p>The implementation is rather simple:</p>
 <ul>
-<li>As usual, determine the entity set.  </li>
-<li>Delete the data in backend.  </li>
+<li>As usual, determine the entity set.</li>
+<li>Delete the data in backend.</li>
 <li>
-<p>Configure the response object with the proper status code <strong>204 – 
no content</strong>.  </p>
+<p>Configure the response object with the proper status code <strong>204 – 
no content</strong>.</p>
 <div class="codehilite"><pre><span class="kd">public</span> <span 
class="kt">void</span> <span class="nf">deleteEntity</span><span 
class="o">(</span><span class="n">ODataRequest</span> <span 
class="n">request</span><span class="o">,</span> <span 
class="n">ODataResponse</span> <span class="n">response</span><span 
class="o">,</span> <span class="n">UriInfo</span> <span 
class="n">uriInfo</span><span class="o">)</span>
                         <span class="kd">throws</span> <span 
class="n">ODataApplicationException</span> <span class="o">{</span>
 
@@ -364,26 +364,26 @@ The difference becomes relevant only in
 <li><strong>POST</strong></li>
 <li><strong>PUT</strong></li>
 <li><strong>PATCH</strong></li>
-<li><strong>DELETE</strong>  </li>
+<li><strong>DELETE</strong></li>
 </ul>
-<p>This is usually done with any REST client tool that can be installed into 
the browser of your choice.  </p>
+<p>This is usually done with any REST client tool that can be installed into 
the browser of your choice.</p>
 <p>Some <em>REST</em> clients which are available as browser extension for:</p>
 <ul>
-<li>Firefox: “RESTClient, a debugger for RESTful web services”  </li>
-<li>Chrome: “Advanced REST client”  </li>
+<li>Firefox: “RESTClient, a debugger for RESTful web services”</li>
+<li>Chrome: “Advanced REST client”</li>
 </ul>
 <p>The following sections provide examples for executing the requests:</p>
 <h3 id="41-example-for-create">4.1. Example for <strong>CREATE</strong>:</h3>
 <ul>
-<li>URL: <a 
href="http://localhost:8080/DemoService/DemoService.svc/Products";>http://localhost:8080/DemoService/DemoService.svc/Products</a>
  </li>
+<li>URL: <a 
href="http://localhost:8080/DemoService/DemoService.svc/Products";>http://localhost:8080/DemoService/DemoService.svc/Products</a></li>
 <li>HTTP verb: <strong>POST</strong></li>
-<li>Header: <code>Content-Type: application/json; 
odata.metadata=minimal</code>  </li>
+<li>Header: <code>Content-Type: application/json; 
odata.metadata=minimal</code></li>
 <li>
-<p>Request body:  </p>
-<div class="codehilite"><pre><span class="p">{</span>  
-  <span class="nt">&quot;ID&quot;</span><span class="p">:</span><span 
class="mi">6</span><span class="p">,</span>  
-  <span class="nt">&quot;Name&quot;</span><span class="p">:</span><span 
class="s2">&quot;Gamer Mouse&quot;</span><span class="p">,</span>  
-  <span class="nt">&quot;Description&quot;</span><span class="p">:</span><span 
class="s2">&quot;optical mouse - gamer edition&quot;</span>  
+<p>Request body:</p>
+<div class="codehilite"><pre><span class="p">{</span>
+  <span class="nt">&quot;ID&quot;</span><span class="p">:</span><span 
class="mi">6</span><span class="p">,</span>
+  <span class="nt">&quot;Name&quot;</span><span class="p">:</span><span 
class="s2">&quot;Gamer Mouse&quot;</span><span class="p">,</span>
+  <span class="nt">&quot;Description&quot;</span><span class="p">:</span><span 
class="s2">&quot;optical mouse - gamer edition&quot;</span>
 <span class="p">}</span>
 </pre></div>
 
@@ -393,15 +393,15 @@ The difference becomes relevant only in
 </ul>
 <h3 id="42-example-for-update-put">4.2. Example for UPDATE (PUT):</h3>
 <ul>
-<li>URL: <a 
href="http://localhost:8080/DemoService/DemoService.svc/Products(3)">http://localhost:8080/DemoService/DemoService.svc/Products(3)</a>
  </li>
+<li>URL: <a 
href="http://localhost:8080/DemoService/DemoService.svc/Products(3)">http://localhost:8080/DemoService/DemoService.svc/Products(3)</a></li>
 <li>HTTP verb: <strong>PUT</strong></li>
-<li>Header: <code>Content-Type: application/json; 
odata.metadata=minimal</code>  </li>
+<li>Header: <code>Content-Type: application/json; 
odata.metadata=minimal</code></li>
 <li>
-<p>Request body:  </p>
-<div class="codehilite"><pre><span class="p">{</span>  
-  <span class="nt">&quot;ID&quot;</span><span class="p">:</span><span 
class="mi">3</span><span class="p">,</span>  
-  <span class="nt">&quot;Name&quot;</span><span class="p">:</span><span 
class="s2">&quot;Ergo Screen updated Name&quot;</span><span class="p">,</span>  
-  <span class="nt">&quot;Description&quot;</span><span class="p">:</span><span 
class="s2">&quot;updated description&quot;</span>  
+<p>Request body:</p>
+<div class="codehilite"><pre><span class="p">{</span>
+  <span class="nt">&quot;ID&quot;</span><span class="p">:</span><span 
class="mi">3</span><span class="p">,</span>
+  <span class="nt">&quot;Name&quot;</span><span class="p">:</span><span 
class="s2">&quot;Ergo Screen updated Name&quot;</span><span class="p">,</span>
+  <span class="nt">&quot;Description&quot;</span><span class="p">:</span><span 
class="s2">&quot;updated description&quot;</span>
 <span class="p">}</span>
 </pre></div>
 
@@ -410,13 +410,13 @@ The difference becomes relevant only in
 </ul>
 <h3 id="43-example-for-update-patch">4.3. Example for UPDATE (PATCH):</h3>
 <ul>
-<li>URL: <a 
href="http://localhost:8080/DemoService/DemoService.svc/Products(3)">http://localhost:8080/DemoService/DemoService.svc/Products(3)</a>
  </li>
-<li>HTTP verb: <strong>PATCH</strong>  </li>
-<li>Header: <code>Content-Type: application/json; 
odata.metadata=minimal</code>  </li>
+<li>URL: <a 
href="http://localhost:8080/DemoService/DemoService.svc/Products(3)">http://localhost:8080/DemoService/DemoService.svc/Products(3)</a></li>
+<li>HTTP verb: <strong>PATCH</strong></li>
+<li>Header: <code>Content-Type: application/json; 
odata.metadata=minimal</code></li>
 <li>
-<p>Request body:  </p>
-<div class="codehilite"><pre><span class="p">{</span>  
-  <span class="nt">&quot;Description&quot;</span><span class="p">:</span> 
<span class="s2">&quot;patched description&quot;</span>  
+<p>Request body:</p>
+<div class="codehilite"><pre><span class="p">{</span>
+  <span class="nt">&quot;Description&quot;</span><span class="p">:</span> 
<span class="s2">&quot;patched description&quot;</span>
 <span class="p">}</span>
 </pre></div>
 
@@ -425,25 +425,25 @@ The difference becomes relevant only in
 </ul>
 <h3 id="44-example-for-delete">4.4. Example for DELETE:</h3>
 <ul>
-<li>URL: <a 
href="http://localhost:8080/DemoService/DemoService.svc/Products(3)">http://localhost:8080/DemoService/DemoService.svc/Products(3)</a>
  </li>
-<li>HTTP verb: <strong>DELETE</strong>  </li>
-<li>Header: Content-Type: application/json; odata.metadata=minimal  </li>
+<li>URL: <a 
href="http://localhost:8080/DemoService/DemoService.svc/Products(3)">http://localhost:8080/DemoService/DemoService.svc/Products(3)</a></li>
+<li>HTTP verb: <strong>DELETE</strong></li>
+<li>Header: Content-Type: application/json; odata.metadata=minimal</li>
 <li>Request body:  <code>&lt;empty&gt;</code></li>
 </ul>
 <hr />
 <h1 id="5-summary">5. Summary</h1>
-<p>In this tutorial we have learned how to implement the creation, update and 
deletion of an entity.<br />
-It has been based on a simple OData model, focusing on simple sample code and 
sample data.  </p>
+<p>In this tutorial we have learned how to implement the creation, update and 
deletion of an entity.
+It has been based on a simple OData model, focusing on simple sample code and 
sample data.</p>
 <p>In the next tutorial (Part 4: Navigation) we will learn how to implement 
navigation, i.e. the linking of resources.</p>
 <hr />
 <h1 id="6-links">6. Links</h1>
 <ul>
-<li>Tutorial OData V4 service part 1: <a 
href="/doc/odata4/tutorials/read/tutorial_read.html">Read Entity Collection</a> 
| <a href="sample/DemoService_Tutorial_Read.zip">sample project</a> (<a 
href="sample/DemoService_Tutorial_Read.zip.md5">md5</a>, <a 
href="sample/DemoService_Tutorial_Read.zip.sha512">sha512</a>, <a 
href="sample/DemoService_Tutorial_Read.zip.asc">pgp</a>).</li>
-<li>Tutorial OData V4 service part 2: <a 
href="/doc/odata4/tutorials/readep/tutorial_readep.html">Read Entity, Read 
Property</a> | <a 
href="/doc/odata4/tutorials/readep/sample/DemoService_Tutorial_ReadEp.zip">sample
 project zip</a> (<a href="sample/DemoService_Tutorial_ReadEp.zip.md5">md5</a>, 
<a href="sample/DemoService_Tutorial_ReadEp.zip.sha512">sha512</a>, <a 
href="sample/DemoService_Tutorial_ReadEp.zip.asc">pgp</a>)  </li>
-<li>Tutorial OData V4 service part 3: <a 
href="/doc/odata4/tutorials/write/tutorial_write.html">Write (Create, Update, 
Delete Entity)  (this page)</a> | <a 
href="/doc/odata4/tutorials/write/sample/DemoService_Tutorial_Write.zip">sample 
project zip</a> (<a href="sample/DemoService_Tutorial_Write.zip.md5">md5</a>, 
<a href="sample/DemoService_Tutorial_Write.zip.zip.sha512">sha512</a>, <a 
href="sample/DemoService_Tutorial_Write.zip.asc">pgp</a>)  </li>
+<li>Tutorial OData V4 service part 1: <a 
href="/doc/odata4/tutorials/read/tutorial_read.html">Read Entity Collection</a> 
| <a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_Read.zip";>sample
 project</a> (<a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_Read.zip.md5";>md5</a>,
 <a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_Read.zip.sha512";>sha512</a>,
 <a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_Read.zip.asc";>pgp</a>).</li>
+<li>Tutorial OData V4 service part 2: <a 
href="/doc/odata4/tutorials/readep/tutorial_readep.html">Read Entity, Read 
Property</a> | <a 
href="/doc/odata4/tutorials/readep/sample/DemoService_Tutorial_ReadEp.zip">sample
 project zip</a> (<a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_ReadEp.zip.md5";>md5</a>,
 <a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_ReadEp.zip.sha512";>sha512</a>,
 <a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_ReadEp.zip.asc";>pgp</a>)</li>
+<li>Tutorial OData V4 service part 3: <a 
href="/doc/odata4/tutorials/write/tutorial_write.html">Write (Create, Update, 
Delete Entity)  (this page)</a> | <a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_Write.zip";>sample
 project zip</a> (<a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_Write.zip.md5";>md5</a>,
 <a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_Write.zip.zip.sha512";>sha512</a>,
 <a 
href="http://www.apache.org/dyn/closer.cgi/olingo/odata4/Tutorial/DemoService_Tutorial_Write.zip.asc";>pgp</a>)</li>
 <li>Tutorial OData V4 service part 4: <a href="...">Navigation - (To Be 
Announced)</a></li>
 </ul>
-<p>OData specification: <a href="http://odata.org/";>http://odata.org/</a><br />
+<p>OData specification: <a href="http://odata.org/";>http://odata.org/</a>
 Olingo Javadoc: <a 
href="/javadoc/odata4/index.html">http://olingo.apache.org/javadoc/odata4/index.html</a></p><div
 align="center">
 <p>Copyright © 2013-2015, The Apache Software Foundation<br>
                                                Apache Olingo, Olingo, Apache, 
the Apache feather, and


Reply via email to