public class Export extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
doJson(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
Object bean) |
static String |
toJson(Object object)
Serialize the supplied object to JSON and return as a
String. |
static String |
toJson(Object object,
boolean htmlEncoded)
Serialize the supplied object to JSON and return as a
String. |
static void |
toJson(Object object,
Writer writer)
Serialize the supplied object to JSON and write to the supplied
Writer. |
static void |
toJson(Object object,
Writer writer,
boolean htmlEncoded)
Serialize the supplied object to JSON and write to the supplied
Writer. |
@Nonnull public static String toJson(@Nonnull Object object) throws IOException
String.object - The object to serialize.String.IOException - Error serializing model object.@Nonnull public static String toJson(@Nonnull Object object, boolean htmlEncoded) throws IOException
String.object - The object to serialize.htmlEncoded - enable html encoding so its safe to output to htmlString.IOException - Error serializing model object.public static void toJson(@Nonnull Object object, @Nonnull Writer writer) throws IOException
Writer.object - The object to serialize.writer - The writer to output to.IOException - Error serializing model object.public static void toJson(@Nonnull Object object, @Nonnull Writer writer, boolean htmlEncoded) throws IOException
Writer.object - The object to serialize.writer - The writer to output to.htmlEncoded - enable html encoding so its safe to output to htmlIOException - Error serializing model object.public static void doJson(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
Object bean)
throws IOException,
javax.servlet.ServletException
req - requestrsp - responsebean - to serveIOException - if cannot be writtenjavax.servlet.ServletException - if something goes wrong processing the requestCopyright © 2016–2019. All rights reserved.