public class Engine extends Object
public String getUrl(String apiUrl, String downloadLink) throws MalformedURLException
MalformedURLExceptionpublic int doTestConnection(String urlStr) throws IOException
IOExceptionpublic net.sf.json.JSONArray getTargets()
throws IOException
IOExceptionpublic String getTargetName(String targetId) throws IOException
IOExceptionpublic net.sf.json.JSONArray getScanningProfiles()
throws IOException
IOExceptionpublic Boolean checkScanProfileExists(String profileId) throws IOException
IOExceptionpublic String startScan(String scanningProfileId, String targetId, Boolean waitFinish) throws IOException
IOExceptionpublic String createIncScan(String scanningProfileId, String targetId) throws IOException
IOExceptionpublic String triggerIncScan(String scanId, Boolean waitFinish) throws IOException
IOExceptionpublic net.sf.json.JSONArray getScans()
throws IOException
IOExceptionpublic String getScanThreat(String scanId) throws IOException
IOExceptionpublic String getScanStatus(String scanId) throws IOException
IOExceptionpublic String getScanProfile(String scanId) throws IOException
IOExceptionpublic String getScanTarget(String scanId) throws IOException
IOExceptionpublic void stopScan(String scanId)
public void deleteScan(String scanId)
public void stopTargetScans(String targetId) throws IOException
IOExceptionpublic net.sf.json.JSONArray getReportTemplates()
throws IOException
IOExceptionpublic String getReportTemplateName(String reportTemplateId) throws IOException
IOExceptionpublic void waitReportStatus(String reportId) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic String generateReport(String sourceId, String reportTemplateId, String listType) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic Integer getVersion() throws IOException
IOExceptionpublic String getReportFileName(String urlSource) throws IOException
IOExceptionpublic void doDownload(String urlSource, hudson.FilePath savePath) throws IOException, InterruptedException
IOExceptionInterruptedExceptionCopyright © 2016–2021. All rights reserved.