Class JsonLinkConsumer
- java.lang.Object
-
- org.apache.olingo.odata2.core.ep.consumer.JsonLinkConsumer
-
public class JsonLinkConsumer extends Object
-
-
Constructor Summary
Constructors Constructor Description JsonLinkConsumer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringreadLink(com.google.gson.stream.JsonReader reader, EdmEntitySet entitySet)Reads single link with format{"d":{"uri":"http://somelink"}}or{"uri":"http://somelink"}.List<String>readLinks(com.google.gson.stream.JsonReader reader, EdmEntitySet entitySet)Reads a collection of links, optionally wrapped in a "d" object, and optionally wrapped in an "results" object, where an additional "__count" object could appear on the same level as the "results".
-
-
-
Method Detail
-
readLink
public String readLink(com.google.gson.stream.JsonReader reader, EdmEntitySet entitySet) throws EntityProviderException
Reads single link with format{"d":{"uri":"http://somelink"}}or{"uri":"http://somelink"}.- Parameters:
reader- ReaderentitySet- Entities- Returns:
- link as string object
- Throws:
EntityProviderException- Caso ocorra exceção
-
readLinks
public List<String> readLinks(com.google.gson.stream.JsonReader reader, EdmEntitySet entitySet) throws EntityProviderException
Reads a collection of links, optionally wrapped in a "d" object, and optionally wrapped in an "results" object, where an additional "__count" object could appear on the same level as the "results".- Parameters:
reader- ReaderentitySet- Entities- Returns:
- links as List of Strings
- Throws:
EntityProviderException- Caso ocorra exceção
-
-