Class JsonWriter
- java.lang.Object
-
- org.nuxeo.ecm.automation.jaxrs.io.JsonWriter
-
public class JsonWriter extends Object
Json writer for operations export.- Author:
- Bogdan Stefanescu, Guillaume Renard
-
-
Constructor Summary
Constructors Constructor Description JsonWriter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
exportOperations()
Used to export operations to studio.static String
exportOperations(boolean filterNotInStudio)
Used to export operations to studio.static void
writeAutomationInfo(com.fasterxml.jackson.core.JsonGenerator jg, AutomationInfo info, boolean prettyPrint)
static void
writeAutomationInfo(OutputStream out, AutomationInfo info, boolean prettyPrint)
static void
writeLogin(com.fasterxml.jackson.core.JsonGenerator jg, LoginInfo login)
static void
writeLogin(OutputStream out, LoginInfo login)
static void
writeOperation(com.fasterxml.jackson.core.JsonGenerator jg, OperationDocumentation op)
static void
writeOperation(com.fasterxml.jackson.core.JsonGenerator jg, OperationDocumentation op, boolean prettyPrint)
static void
writeOperation(com.fasterxml.jackson.core.JsonGenerator jg, OperationDocumentation op, String url)
static void
writeOperation(com.fasterxml.jackson.core.JsonGenerator jg, OperationDocumentation op, String url, boolean prettyPrint)
static void
writeOperation(OutputStream out, OperationDocumentation op)
static void
writeOperation(OutputStream out, OperationDocumentation op, boolean prettyPrint)
static void
writePrimitive(com.fasterxml.jackson.core.JsonGenerator jg, Object value)
static void
writePrimitive(OutputStream out, Object value)
-
-
-
Constructor Detail
-
JsonWriter
public JsonWriter()
-
-
Method Detail
-
writeAutomationInfo
public static void writeAutomationInfo(OutputStream out, AutomationInfo info, boolean prettyPrint) throws IOException
- Throws:
IOException
-
writeAutomationInfo
public static void writeAutomationInfo(com.fasterxml.jackson.core.JsonGenerator jg, AutomationInfo info, boolean prettyPrint) throws IOException
- Throws:
IOException
-
exportOperations
public static String exportOperations() throws IOException, OperationException
Used to export operations to studio.- Throws:
IOException
OperationException
-
exportOperations
public static String exportOperations(boolean filterNotInStudio) throws IOException, OperationException
Used to export operations to studio.- Parameters:
filterNotInStudio
- if true, operation types not exposed in Studio will be filtered.- Throws:
IOException
OperationException
- Since:
- 5.9.1
-
writeOperation
public static void writeOperation(OutputStream out, OperationDocumentation op) throws IOException
- Throws:
IOException
-
writeOperation
public static void writeOperation(OutputStream out, OperationDocumentation op, boolean prettyPrint) throws IOException
- Throws:
IOException
- Since:
- 5.9.4
-
writeOperation
public static void writeOperation(com.fasterxml.jackson.core.JsonGenerator jg, OperationDocumentation op) throws IOException
- Throws:
IOException
-
writeOperation
public static void writeOperation(com.fasterxml.jackson.core.JsonGenerator jg, OperationDocumentation op, boolean prettyPrint) throws IOException
- Throws:
IOException
- Since:
- 5.9.4
-
writeOperation
public static void writeOperation(com.fasterxml.jackson.core.JsonGenerator jg, OperationDocumentation op, String url) throws IOException
- Throws:
IOException
-
writeOperation
public static void writeOperation(com.fasterxml.jackson.core.JsonGenerator jg, OperationDocumentation op, String url, boolean prettyPrint) throws IOException
- Throws:
IOException
- Since:
- 5.9.4
-
writeLogin
public static void writeLogin(OutputStream out, LoginInfo login) throws IOException
- Throws:
IOException
-
writeLogin
public static void writeLogin(com.fasterxml.jackson.core.JsonGenerator jg, LoginInfo login) throws IOException
- Throws:
IOException
-
writePrimitive
public static void writePrimitive(OutputStream out, Object value) throws IOException
- Throws:
IOException
-
writePrimitive
public static void writePrimitive(com.fasterxml.jackson.core.JsonGenerator jg, Object value) throws IOException
- Throws:
IOException
-
-