public class JsonWriter extends Object
Constructor and Description |
---|
JsonWriter() |
Modifier and Type | Method and Description |
---|---|
static org.codehaus.jackson.JsonFactory |
createFactory() |
static org.codehaus.jackson.JsonGenerator |
createGenerator(OutputStream out) |
static String |
exportOperations()
Used to export operations to studio
|
static org.codehaus.jackson.JsonFactory |
getFactory() |
static void |
writeAutomationInfo(org.codehaus.jackson.JsonGenerator jg,
AutomationInfo info,
boolean prettyPrint) |
static void |
writeAutomationInfo(OutputStream out,
AutomationInfo info,
boolean prettyPrint) |
static void |
writeException(org.codehaus.jackson.JsonGenerator jg,
ExceptionHandler eh) |
static void |
writeException(OutputStream out,
ExceptionHandler eh) |
static void |
writeLogin(org.codehaus.jackson.JsonGenerator jg,
LoginInfo login) |
static void |
writeLogin(OutputStream out,
LoginInfo login) |
static void |
writeOperation(org.codehaus.jackson.JsonGenerator jg,
OperationDocumentation op) |
static void |
writeOperation(org.codehaus.jackson.JsonGenerator jg,
OperationDocumentation op,
String url) |
static void |
writeOperation(OutputStream out,
OperationDocumentation op) |
static void |
writePrimitive(org.codehaus.jackson.JsonGenerator jg,
Object value) |
static void |
writePrimitive(OutputStream out,
Object value) |
public static org.codehaus.jackson.JsonFactory createFactory()
public static org.codehaus.jackson.JsonFactory getFactory()
public static org.codehaus.jackson.JsonGenerator createGenerator(OutputStream out) throws IOException
IOException
public static void writeAutomationInfo(OutputStream out, AutomationInfo info, boolean prettyPrint) throws IOException
IOException
public static void writeAutomationInfo(org.codehaus.jackson.JsonGenerator jg, AutomationInfo info, boolean prettyPrint) throws IOException
IOException
public static String exportOperations() throws IOException
info
- IOException
public static void writeOperation(OutputStream out, OperationDocumentation op) throws IOException
IOException
public static void writeOperation(org.codehaus.jackson.JsonGenerator jg, OperationDocumentation op) throws IOException
IOException
public static void writeOperation(org.codehaus.jackson.JsonGenerator jg, OperationDocumentation op, String url) throws IOException
IOException
public static void writeLogin(OutputStream out, LoginInfo login) throws IOException
IOException
public static void writeLogin(org.codehaus.jackson.JsonGenerator jg, LoginInfo login) throws IOException
IOException
public static void writePrimitive(OutputStream out, Object value) throws IOException
IOException
public static void writePrimitive(org.codehaus.jackson.JsonGenerator jg, Object value) throws IOException
IOException
public static void writeException(OutputStream out, ExceptionHandler eh) throws IOException
IOException
public static void writeException(org.codehaus.jackson.JsonGenerator jg, ExceptionHandler eh) throws IOException
IOException
Copyright © 2011 Nuxeo SA. All Rights Reserved.