olingo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r1045623 - in /websites/staging/olingo/trunk/content: ./ doc/odata4/tutorials/od4_basic_client_read.html
Date Tue, 28 May 2019 08:07:20 GMT
Author: buildbot
Date: Tue May 28 08:07:20 2019
New Revision: 1045623

Log:
Staging update by buildbot for olingo

Modified:
    websites/staging/olingo/trunk/content/   (props changed)
    websites/staging/olingo/trunk/content/doc/odata4/tutorials/od4_basic_client_read.html

Propchange: websites/staging/olingo/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Tue May 28 08:07:20 2019
@@ -1 +1 @@
-1860189
+1860193

Modified: websites/staging/olingo/trunk/content/doc/odata4/tutorials/od4_basic_client_read.html
==============================================================================
--- websites/staging/olingo/trunk/content/doc/odata4/tutorials/od4_basic_client_read.html
(original)
+++ websites/staging/olingo/trunk/content/doc/odata4/tutorials/od4_basic_client_read.html
Tue May 28 08:07:20 2019
@@ -591,8 +591,7 @@ If the entry was updated successfully an
     <span class="n">System</span><span class="p">.</span><span
class="n">out</span><span class="p">.</span><span class="n">println</span><span
class="p">(</span><span class="s">&quot;URI = &quot;</span> <span
class="o">+</span> <span class="n">absoluteUri</span><span class="p">);</span>
     <span class="n">ODataEntitySetIteratorRequest</span><span class="o">&lt;</span><span
class="n">ClientEntitySet</span><span class="p">,</span> <span class="n">ClientEntity</span><span
class="o">&gt;</span> <span class="n">request</span> <span class="o">=</span>

       <span class="n">client</span><span class="p">.</span><span
class="n">getRetrieveRequestFactory</span><span class="p">().</span><span
class="n">getEntitySetIteratorRequest</span><span class="p">(</span><span
class="n">absoluteUri</span><span class="p">);</span>
-    <span class="c1">// odata4 sample/server limitation not handling metadata=full</span>
-    <span class="n">request</span><span class="p">.</span><span
class="n">setAccept</span><span class="p">(</span><span class="s">&quot;application/json;odata.metadata=minimal&quot;</span><span
class="p">);</span>
+    <span class="n">request</span><span class="p">.</span><span
class="n">setAccept</span><span class="p">(</span><span class="s">&quot;application/json&quot;</span><span
class="p">);</span>
     <span class="n">ODataRetrieveResponse</span><span class="o">&lt;</span><span
class="n">ClientEntitySetIterator</span><span class="o">&lt;</span><span
class="n">ClientEntitySet</span><span class="p">,</span> <span class="n">ClientEntity</span><span
class="o">&gt;&gt;</span> <span class="n">response</span> <span
class="o">=</span> <span class="n">request</span><span class="p">.</span><span
class="n">execute</span><span class="p">();</span>
 
     <span class="k">return</span> <span class="n">response</span><span
class="p">.</span><span class="n">getBody</span><span class="p">();</span>
@@ -613,8 +612,7 @@ If the entry was updated successfully an
 
   <span class="n">private</span> <span class="n">ClientEntity</span>
<span class="n">readEntity</span><span class="p">(</span><span
class="n">Edm</span> <span class="n">edm</span><span class="p">,</span>
<span class="no">URI</span> <span class="n">absoluteUri</span><span
class="p">)</span> <span class="p">{</span>
     <span class="n">ODataEntityRequest</span><span class="o">&lt;</span><span
class="n">ClientEntity</span><span class="o">&gt;</span> <span
class="n">request</span> <span class="o">=</span> <span class="n">client</span><span
class="p">.</span><span class="n">getRetrieveRequestFactory</span><span
class="p">().</span><span class="n">getEntityRequest</span><span class="p">(</span><span
class="n">absoluteUri</span><span class="p">);</span>
-    <span class="c1">// odata4 sample/server limitation not handling metadata=full</span>
-    <span class="n">request</span><span class="p">.</span><span
class="n">setAccept</span><span class="p">(</span><span class="s">&quot;application/json;odata.metadata=minimal&quot;</span><span
class="p">);</span>
+    <span class="n">request</span><span class="p">.</span><span
class="n">setAccept</span><span class="p">(</span><span class="s">&quot;application/json;odata.metadata=full&quot;</span><span
class="p">);</span>
     <span class="n">ODataRetrieveResponse</span><span class="o">&lt;</span><span
class="n">ClientEntity</span><span class="o">&gt;</span> <span
class="n">response</span> <span class="o">=</span> <span class="n">request</span><span
class="p">.</span><span class="n">execute</span><span class="p">();</span>
 
     <span class="k">return</span> <span class="n">response</span><span
class="p">.</span><span class="n">getBody</span><span class="p">();</span>
@@ -633,8 +631,7 @@ If the entry was updated successfully an
   <span class="n">private</span> <span class="n">ClientEntity</span>
<span class="n">createEntity</span><span class="p">(</span><span
class="n">Edm</span> <span class="n">edm</span><span class="p">,</span>
<span class="no">URI</span> <span class="n">absoluteUri</span><span
class="p">,</span> <span class="n">ClientEntity</span> <span class="n">ce</span><span
class="p">)</span> <span class="p">{</span>
     <span class="n">ODataEntityCreateRequest</span><span class="o">&lt;</span><span
class="n">ClientEntity</span><span class="o">&gt;</span> <span
class="n">request</span> <span class="o">=</span> <span class="n">client</span><span
class="p">.</span><span class="n">getCUDRequestFactory</span><span
class="p">()</span>
       <span class="p">.</span><span class="n">getEntityCreateRequest</span><span
class="p">(</span><span class="n">absoluteUri</span><span class="p">,</span>
<span class="n">ce</span><span class="p">);</span>
-    <span class="c1">// odata4 sample/server limitation not handling metadata=full</span>
-    <span class="n">request</span><span class="p">.</span><span
class="n">setAccept</span><span class="p">(</span><span class="s">&quot;application/json;odata.metadata=minimal&quot;</span><span
class="p">);</span>
+    <span class="n">request</span><span class="p">.</span><span
class="n">setAccept</span><span class="p">(</span><span class="s">&quot;application/json&quot;</span><span
class="p">);</span>
     <span class="n">ODataEntityCreateResponse</span><span class="o">&lt;</span><span
class="n">ClientEntity</span><span class="o">&gt;</span> <span
class="n">response</span> <span class="o">=</span> <span class="n">request</span><span
class="p">.</span><span class="n">execute</span><span class="p">();</span>
 
     <span class="k">return</span> <span class="n">response</span><span
class="p">.</span><span class="n">getBody</span><span class="p">();</span>
@@ -645,7 +642,6 @@ If the entry was updated successfully an
       <span class="p">.</span><span class="n">appendKeySegment</span><span
class="p">(</span><span class="n">keyValue</span><span class="p">).</span><span
class="n">build</span><span class="p">();</span>
     <span class="n">ODataEntityUpdateRequest</span><span class="o">&lt;</span><span
class="n">ClientEntity</span><span class="o">&gt;</span> <span
class="n">request</span> <span class="o">=</span> 
       <span class="n">client</span><span class="p">.</span><span
class="n">getCUDRequestFactory</span><span class="p">().</span><span
class="n">getEntityUpdateRequest</span><span class="p">(</span><span
class="n">absoluteUri</span><span class="p">,</span> <span class="n">UpdateType</span><span
class="p">.</span><span class="no">PATCH</span><span class="p">,</span>
<span class="n">ce</span><span class="p">);</span>
-    <span class="c1">// odata4 sample/server limitation not handling metadata=full</span>
     <span class="n">request</span><span class="p">.</span><span
class="n">setAccept</span><span class="p">(</span><span class="s">&quot;application/json;odata.metadata=minimal&quot;</span><span
class="p">);</span>
     <span class="n">ODataEntityUpdateResponse</span><span class="o">&lt;</span><span
class="n">ClientEntity</span><span class="o">&gt;</span> <span
class="n">response</span> <span class="o">=</span> <span class="n">request</span><span
class="p">.</span><span class="n">execute</span><span class="p">();</span>
     <span class="k">return</span> <span class="n">response</span><span
class="p">.</span><span class="n">getStatusCode</span><span class="p">();</span>
@@ -655,7 +651,6 @@ If the entry was updated successfully an
     <span class="no">URI</span> <span class="n">absoluteUri</span>
<span class="o">=</span> <span class="n">client</span><span class="p">.</span><span
class="n">newURIBuilder</span><span class="p">(</span><span class="n">serviceUri</span><span
class="p">).</span><span class="n">appendEntitySetSegment</span><span
class="p">(</span><span class="n">entityName</span><span class="p">)</span>
       <span class="p">.</span><span class="n">appendKeySegment</span><span
class="p">(</span><span class="n">keyValue</span><span class="p">).</span><span
class="n">build</span><span class="p">();</span>
     <span class="n">ODataDeleteRequest</span> <span class="n">request</span>
<span class="o">=</span> <span class="n">client</span><span class="p">.</span><span
class="n">getCUDRequestFactory</span><span class="p">().</span><span
class="n">getDeleteRequest</span><span class="p">(</span><span class="n">absoluteUri</span><span
class="p">);</span>
-    <span class="c1">// odata4 sample/server limitation not handling metadata=full</span>
     <span class="n">request</span><span class="p">.</span><span
class="n">setAccept</span><span class="p">(</span><span class="s">&quot;application/json;odata.metadata=minimal&quot;</span><span
class="p">);</span>
     <span class="n">ODataDeleteResponse</span> <span class="n">response</span>
<span class="o">=</span> <span class="n">request</span><span class="p">.</span><span
class="n">execute</span><span class="p">();</span>
     <span class="k">return</span> <span class="n">response</span><span
class="p">.</span><span class="n">getStatusCode</span><span class="p">();</span>



Mime
View raw message