Author: mibo
Date: Tue Apr 28 12:52:52 2015
New Revision: 1676522
URL: http://svn.apache.org/r1676522
Log:
CMS commit to olingo by mibo
Modified:
olingo/site/trunk/content/doc/odata4/tutorials/read/tutorial_read.mdtext
Modified:
olingo/site/trunk/content/doc/odata4/tutorials/read/tutorial_read.mdtext
URL:
http://svn.apache.org/viewvc/olingo/site/trunk/content/doc/odata4/tutorials/read/tutorial_read.mdtext?rev=1676522&r1=1676521&r2=1676522&view=diff
==============================================================================
--- olingo/site/trunk/content/doc/odata4/tutorials/read/tutorial_read.mdtext
(original)
+++ olingo/site/trunk/content/doc/odata4/tutorials/read/tutorial_read.mdtext
Tue Apr 28 12:52:52 2015
@@ -716,7 +716,7 @@ The steps for implementating the method
Note that this object has to be of type _EntitySet_, not _EdmEntitySet_
The package _org.apache.olingo.commons.api.data_ provides interfaces that
describe the actual data, not the metadata.
- 
+ 
3. Transform the data
_Olingo_ expects from us to provide the data as low-level _InputStream_
object. However, _Olingo_ supports us in doing so, by providing us with a
proper "serializer".
@@ -727,11 +727,9 @@ The steps for implementating the method
Furthermore, we have to set the HTTP status code, which means that we have
the opportunity to do proper error handling.
And finally we have to set the content type.
-
:::java
public void readEntityCollection(ODataRequest request, ODataResponse
response, UriInfo uriInfo, ContentType responseFormat)
throws ODataApplicationException, SerializerException
{
-
// 1st retrieve the requested EntitySet from the uriInfo
(representation of the parsed URI)
List<UriResource> resourcePaths = uriInfo.getUriResourceParts();
// in our example, the first segment is the EntitySet: