You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
940 B
23 lines
940 B
package dto; |
|
|
|
import org.eclipse.microprofile.config.ConfigProvider; |
|
// import org.jboss.pnc.api.deliverablesanalyzer.dto.AnalyzePayload; |
|
// import org.jboss.pnc.api.dto.HeartbeatConfig; |
|
// import org.jboss.pnc.api.dto.Request; |
|
|
|
import java.net.URI; |
|
import java.net.URISyntaxException; |
|
import java.nio.charset.StandardCharsets; |
|
import java.sql.Struct; |
|
import java.util.*; |
|
|
|
import org.json.JSONObject; |
|
import org.json.JSONArray; |
|
|
|
import static constants.HttpHeaders.AUTHORIZATION_STRING; |
|
|
|
public class ScanObjPayload { |
|
public static ScanObj constructScanPayload(JSONObject scanObj) throws URISyntaxException { |
|
return new ScanObj(scanObj.getString("hub"),scanObj.getString("source"),scanObj.getString("username"),scanObj.getString("password"),scanObj.getString("scanUrl"),scanObj.getString("scanId"),scanObj.getString("advisoryId"),scanObj.getString("owner"),scanObj.getString("release"),scanObj.getString("base")); |
|
} |
|
} |