Class StaticScanController
- java.lang.Object
-
- org.jenkinsci.plugins.fodupload.controllers.StaticScanController
-
public class StaticScanController extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected FodApiConnectionapiConnectionprotected StringcorrelationIdprotected PrintStreamlogger
-
Constructor Summary
Constructors Constructor Description StaticScanController(FodApiConnection apiConnection, PrintStream logger, String correlationId)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected StringgetCorrelationId()GetStaticScanSetupResponsegetStaticScanSettings(Integer releaseId)GetStaticScanSetupResponsegetStaticScanSettingsOld(Integer releaseId)Deprecated.Use thegetStaticScanSettings(java.lang.Integer)method insteadList<FodAttributeMapItem>mapAttributesToFod(Map<String,String> attributes)protected voidprintln(String log)protected voidprintStackTrace(Exception e)PutStaticScanSetupResponseputStaticScanSettings(Integer releaseId, PutStaticScanSetupModel settings)StartScanResponsestartStaticScan(Integer releaseId, SastJobModel uploadRequest, String notes)Begin a static scan on FoD
-
-
-
Field Detail
-
apiConnection
protected FodApiConnection apiConnection
-
correlationId
protected String correlationId
-
logger
protected PrintStream logger
-
-
Constructor Detail
-
StaticScanController
public StaticScanController(FodApiConnection apiConnection, PrintStream logger, String correlationId)
Constructor- Parameters:
apiConnection- apiConnection object with client infologger- logger object to display to consolecorrelationId- correlation id
-
-
Method Detail
-
startStaticScan
public StartScanResponse startStaticScan(Integer releaseId, SastJobModel uploadRequest, String notes)
Begin a static scan on FoD- Parameters:
releaseId- id of release being targeteduploadRequest- zip file to uploadnotes- notes at_return true if the scan succeeded
-
mapAttributesToFod
public List<FodAttributeMapItem> mapAttributesToFod(Map<String,String> attributes) throws Exception
- Throws:
Exception
-
getStaticScanSettingsOld
@Deprecated public GetStaticScanSetupResponse getStaticScanSettingsOld(Integer releaseId) throws IOException
Deprecated.Use thegetStaticScanSettings(java.lang.Integer)method instead- Throws:
IOException
-
getStaticScanSettings
public GetStaticScanSetupResponse getStaticScanSettings(Integer releaseId) throws IOException
- Throws:
IOException
-
putStaticScanSettings
public PutStaticScanSetupResponse putStaticScanSettings(Integer releaseId, PutStaticScanSetupModel settings) throws IOException
- Throws:
IOException
-
getCorrelationId
protected String getCorrelationId()
-
println
protected void println(String log)
-
printStackTrace
protected void printStackTrace(Exception e)
-
-