Class ScanReportParser


  • public class ScanReportParser
    extends java.lang.Object
    • Method Detail

      • toJson

        public static java.lang.String toJson​(ScanReport scanReport)
      • toJson

        public static java.lang.String toJson​(ScanReport scanReport,
                                              boolean pretty)
      • toJson

        public static void toJson​(ScanReport scanReport,
                                  com.fasterxml.jackson.core.JsonGenerator gen)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • toJsonWithoutStartEnd

        public static void toJsonWithoutStartEnd​(ScanReport scanReport,
                                                 com.fasterxml.jackson.core.JsonGenerator gen)
                                          throws java.io.IOException
        This serializes the ScanReport without writing a start/end object and is mainly used by ReportMetricsRequestParser.
        Parameters:
        scanReport - The ScanReport to serialize
        gen - The JsonGenerator to use
        Throws:
        java.io.IOException - If an error occurs while serializing
      • fromJson

        public static ScanReport fromJson​(java.lang.String json)
      • fromJson

        public static ScanReport fromJson​(com.fasterxml.jackson.databind.JsonNode json)