public class JsonLinkConsumer extends Object
| Constructor and Description |
|---|
JsonLinkConsumer() |
| Modifier and Type | Method and Description |
|---|---|
String |
readLink(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".
|
public String readLink(com.google.gson.stream.JsonReader reader, EdmEntitySet entitySet) throws EntityProviderException
{"d":{"uri":"http://somelink"}}
or {"uri":"http://somelink"}.reader - entitySet - EntityProviderExceptionpublic List<String> readLinks(com.google.gson.stream.JsonReader reader, EdmEntitySet entitySet) throws EntityProviderException
reader - entitySet - EntityProviderExceptionCopyright © 2020. All rights reserved.