Class JsonFeedEntityProducer
java.lang.Object
org.apache.olingo.odata2.core.ep.producer.JsonFeedEntityProducer
Producer for writing an entity collection (a feed) in JSON.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendAsArray(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 Details
-
JsonFeedEntityProducer
public JsonFeedEntityProducer(EntityProviderWriteProperties properties) throws EntityProviderException - Throws:
EntityProviderException
-
-
Method Details
-
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
-