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