You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@olingo.apache.org by ch...@apache.org on 2015/09/08 13:36:21 UTC

svn commit: r1701778 - /olingo/site/trunk/content/doc/odata4/tutorials/sqo_es/tutorial_sqo_es.mdtext

Author: chrish
Date: Tue Sep  8 11:36:21 2015
New Revision: 1701778

URL: http://svn.apache.org/r1701778
Log:
CMS commit to olingo by chrish

Modified:
    olingo/site/trunk/content/doc/odata4/tutorials/sqo_es/tutorial_sqo_es.mdtext

Modified: olingo/site/trunk/content/doc/odata4/tutorials/sqo_es/tutorial_sqo_es.mdtext
URL: http://svn.apache.org/viewvc/olingo/site/trunk/content/doc/odata4/tutorials/sqo_es/tutorial_sqo_es.mdtext?rev=1701778&r1=1701777&r2=1701778&view=diff
==============================================================================
--- olingo/site/trunk/content/doc/odata4/tutorials/sqo_es/tutorial_sqo_es.mdtext (original)
+++ olingo/site/trunk/content/doc/odata4/tutorials/sqo_es/tutorial_sqo_es.mdtext Tue Sep  8 11:36:21 2015
@@ -168,8 +168,7 @@ In this tutorial we use the simple imple
       SelectOption selectOption = uriInfo.getSelectOption();
 
       // 4th: create a serializer based on the requested format (json)
-      ODataFormat format = ODataFormat.fromContentType(responseFormat);
-      ODataSerializer serializer = odata.createSerializer(format);
+      ODataSerializer serializer = odata.createSerializer(responseFormat);
 
       // and serialize the content: transform from the EntitySet object to InputStream
       EdmEntityType edmEntityType = edmEntitySet.getEntityType();
@@ -605,7 +604,7 @@ In this tutorial we have learned the bas
                                                             .expand(expandOption)
                                                             .build();
 
-      ODataSerializer serializer = this.odata.createSerializer(ODataFormat.fromContentType(responseFormat));
+      ODataSerializer serializer = this.odata.createSerializer(responseFormat);
       SerializerResult serializerResult = serializer.entity(srvMetadata, edmEntityType, entity, opts);
 
       // 5. configure the response object