public class ScanReportParser
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static ScanReport |
fromJson(com.fasterxml.jackson.databind.JsonNode json) |
static ScanReport |
fromJson(java.lang.String json) |
static java.lang.String |
toJson(ScanReport scanReport) |
static java.lang.String |
toJson(ScanReport scanReport,
boolean pretty) |
static void |
toJson(ScanReport scanReport,
com.fasterxml.jackson.core.JsonGenerator gen) |
static void |
toJsonWithoutStartEnd(ScanReport scanReport,
com.fasterxml.jackson.core.JsonGenerator gen)
This serializes the
ScanReport without writing a start/end object and is mainly used by
ReportMetricsRequestParser . |
public static java.lang.String toJson(ScanReport scanReport)
public static java.lang.String toJson(ScanReport scanReport, boolean pretty)
public static void toJson(ScanReport scanReport, com.fasterxml.jackson.core.JsonGenerator gen) throws java.io.IOException
java.io.IOException
public static void toJsonWithoutStartEnd(ScanReport scanReport, com.fasterxml.jackson.core.JsonGenerator gen) throws java.io.IOException
ScanReport
without writing a start/end object and is mainly used by
ReportMetricsRequestParser
.scanReport
- The ScanReport
to serializegen
- The JsonGenerator
to usejava.io.IOException
- If an error occurs while serializingpublic static ScanReport fromJson(java.lang.String json)
public static ScanReport fromJson(com.fasterxml.jackson.databind.JsonNode json)