You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@olingo.apache.org by bu...@apache.org on 2015/10/21 14:43:11 UTC

svn commit: r969750 - in /websites/staging/olingo/trunk/content: ./ doc/odata4/tutorials/media/tutorial_media.html

Author: buildbot
Date: Wed Oct 21 12:43:10 2015
New Revision: 969750

Log:
Staging update by buildbot for olingo

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

Propchange: websites/staging/olingo/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Wed Oct 21 12:43:10 2015
@@ -1 +1 @@
-1709785
+1709817

Modified: websites/staging/olingo/trunk/content/doc/odata4/tutorials/media/tutorial_media.html
==============================================================================
--- websites/staging/olingo/trunk/content/doc/odata4/tutorials/media/tutorial_media.html (original)
+++ websites/staging/olingo/trunk/content/doc/odata4/tutorials/media/tutorial_media.html Wed Oct 21 12:43:10 2015
@@ -158,7 +158,7 @@ This tutorial can be found in subdirecto
 <li>Implement the interface <code>MediaEntityProcessor</code></li>
 </ul>
 <h3 id="extend-the-metadata-document">Extend the metadata document<a class="headerlink" href="#extend-the-metadata-document" title="Permanent link">&para;</a></h3>
-<p>If you have read the prevois tutorials, you should be familiar with the definition entity types. The only difference to regular (Non media enties) is, that they have a <code>hasStream</code> property. If this property is not provided it defaults to false. So add the following code to class <code>DemoEdmProvider</code>:</p>
+<p>If you have read the previous tutorials, you should be familiar with the definition entity types. The only difference to regular (Non media enties) is, that they have a <code>hasStream</code> property. If this property is not provided it defaults to false. So add the following code to class <code>DemoEdmProvider</code>:</p>
 <p>We start with method <code>DemoEdmProvider.getEntityType</code></p>
 <div class="codehilite"><pre><span class="kd">public</span> <span class="n">CsdlEntityType</span> <span class="nf">getEntityType</span><span class="o">(</span><span class="n">FullQualifiedName</span> <span class="n">entityTypeName</span><span class="o">)</span> <span class="o">{</span>
     <span class="n">CsdlEntityType</span> <span class="n">entityType</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
@@ -253,7 +253,7 @@ All methods have to be implemented in cl
 </pre></div>
 
 
-<p>If a client creates a new media entity, the body of the requet contains the content of the media entity instead the regualr properties! So the other regular properties defaults to <code>null</code>. The Content Type of the  media content must also be set.</p>
+<p>If a client creates a new media entity, the body of the requet contains the content of the media entity instead the regular properties! So the other regular properties defaults to <code>null</code>. The Content Type of the  media content must also be set.</p>
 <div class="codehilite"><pre><span class="kd">public</span> <span class="n">Entity</span> <span class="nf">createMediaEntity</span><span class="o">(</span><span class="kd">final</span> <span class="n">EdmEntityType</span> <span class="n">edmEntityType</span><span class="o">,</span> <span class="kd">final</span> <span class="n">String</span> <span class="n">mediaContentType</span><span class="o">,</span> <span class="kd">final</span> <span class="kt">byte</span><span class="o">[]</span> <span class="n">data</span><span class="o">)</span> <span class="o">{</span>
     <span class="n">Entity</span> <span class="n">entity</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>