Class JsonWriterOdata40
- java.lang.Object
-
- de.fraunhofer.iosb.ilt.frostserver.plugin.odata.serialize.JsonWriterOdata40
-
public class JsonWriterOdata40 extends Object
Enables serialization of entities as JSON.- Author:
- jab, scf
-
-
Field Summary
Fields Modifier and Type Field Description static StringAT_CONTEXTstatic StringAT_COUNTstatic StringAT_IDstatic StringAT_NAVIGATION_LINKstatic StringAT_NEXT_LINK
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.fasterxml.jackson.databind.ObjectMappergetObjectMapper()static voidwriteEntity(Writer writer, EntityWrapper entity)static voidwriteEntityCollection(Writer writer, EntitySetResultOdata entityCollection)static voidwriteObject(Writer writer, Object object)static StringwriteObject(Object object)
-
-
-
Field Detail
-
AT_CONTEXT
public static final String AT_CONTEXT
- See Also:
- Constant Field Values
-
AT_COUNT
public static final String AT_COUNT
- See Also:
- Constant Field Values
-
AT_ID
public static final String AT_ID
- See Also:
- Constant Field Values
-
AT_NAVIGATION_LINK
public static final String AT_NAVIGATION_LINK
- See Also:
- Constant Field Values
-
AT_NEXT_LINK
public static final String AT_NEXT_LINK
- See Also:
- Constant Field Values
-
-
Method Detail
-
getObjectMapper
public static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-
writeEntity
public static void writeEntity(Writer writer, EntityWrapper entity) throws IOException
- Throws:
IOException
-
writeEntityCollection
public static void writeEntityCollection(Writer writer, EntitySetResultOdata entityCollection) throws IOException
- Throws:
IOException
-
writeObject
public static void writeObject(Writer writer, Object object) throws IOException
- Throws:
IOException
-
writeObject
public static String writeObject(Object object) throws IOException
- Throws:
IOException
-
-