Class JsonFeedEntityProducer
- java.lang.Object
-
- org.apache.olingo.odata2.core.ep.producer.JsonFeedEntityProducer
-
public class JsonFeedEntityProducer extends Object
Producer for writing an entity collection (a feed) in JSON.
-
-
Constructor Summary
Constructors Constructor Description JsonFeedEntityProducer(EntityProviderWriteProperties properties)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendAsArray(Writer writer, EntityInfoAggregator entityInfo, List<Map<String,Object>> data)voidappendAsObject(Writer writer, EntityInfoAggregator entityInfo, List<Map<String,Object>> data, boolean isRootElement)static voidappendClientCallbacks(JsonStreamWriter writer, List<ClientCallback> callbacks)
-
-
-
Constructor Detail
-
JsonFeedEntityProducer
public JsonFeedEntityProducer(EntityProviderWriteProperties properties) throws EntityProviderException
- Throws:
EntityProviderException
-
-
Method Detail
-
appendAsObject
public void appendAsObject(Writer writer, EntityInfoAggregator entityInfo, List<Map<String,Object>> data, boolean isRootElement) throws EntityProviderException
- Throws:
EntityProviderException
-
appendClientCallbacks
public static void appendClientCallbacks(JsonStreamWriter writer, List<ClientCallback> callbacks) throws EntityProviderException, IOException
- Throws:
EntityProviderExceptionIOException
-
appendAsArray
public void appendAsArray(Writer writer, EntityInfoAggregator entityInfo, List<Map<String,Object>> data) throws EntityProviderException
- Throws:
EntityProviderException
-
-