Class DastScanController
- java.lang.Object
-
- org.jenkinsci.plugins.fodupload.controllers.DastScanController
-
public class DastScanController extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected FodApiConnection
apiConnection
protected String
correlationId
protected PrintStream
logger
-
Constructor Summary
Constructors Constructor Description DastScanController(FodApiConnection apiConnection, PrintStream logger, String correlationId)
Base constructor for all apiConnection controllers
-
Method Summary
-
-
-
Field Detail
-
apiConnection
protected FodApiConnection apiConnection
-
correlationId
protected String correlationId
-
logger
protected PrintStream logger
-
-
Constructor Detail
-
DastScanController
public DastScanController(FodApiConnection apiConnection, PrintStream logger, String correlationId)
Base constructor for all apiConnection controllers- Parameters:
apiConnection
- apiConnection object (containing client etc.) of controllerlogger
- logger objectcorrelationId
- correlation id
-
-
Method Detail
-
saveDastWebSiteScanSettings
public PutDastScanSetupResponse saveDastWebSiteScanSettings(Integer releaseId, PutDastWebSiteScanReqModel settings) throws IOException
- Throws:
IOException
-
saveDastWorkflowDrivenScanSettings
public PutDastScanSetupResponse saveDastWorkflowDrivenScanSettings(Integer releaseId, PutDastWorkflowDrivenScanReqModel settings) throws IOException
- Throws:
IOException
-
dastFileUpload
public PatchDastFileUploadResponse dastFileUpload(PatchDastScanFileUploadReq requestModel) throws Exception
- Throws:
Exception
-
dastFileUpload
public PatchDastFileUploadResponse dastFileUpload(FilePath payload, PrintStream logger, PatchDastScanFileUploadReq requestModel) throws Exception
- Throws:
Exception
-
startDastScan
public PostDastStartScanResponse startDastScan(Integer releaseId) throws IOException
- Throws:
IOException
-
getDastScanSettings
public GetDastScanSettingResponse getDastScanSettings(Integer releaseId) throws IOException
- Throws:
IOException
-
putDastOpenApiScanSettings
public PutDastScanSetupResponse putDastOpenApiScanSettings(Integer releaseId, PutDastAutomatedOpenApiReqModel settings) throws IOException
- Throws:
IOException
-
putDastGrpcScanSettings
public PutDastScanSetupResponse putDastGrpcScanSettings(Integer releaseId, PutDastAutomatedGrpcReqModel settings) throws IOException
- Throws:
IOException
-
putDastGraphQLScanSettings
public PutDastScanSetupResponse putDastGraphQLScanSettings(Integer releaseId, PutDastAutomatedGraphQlReqModel settings) throws IOException
- Throws:
IOException
-
putDastPostmanScanSettings
public PutDastScanSetupResponse putDastPostmanScanSettings(Integer releaseId, PutDastAutomatedPostmanReqModel settings) throws IOException
- Throws:
IOException
-
upsertApplicationAndRelease
public groovy.lang.Tuple2<Integer,Integer> upsertApplicationAndRelease(CreateApplicationModel appModel) throws Exception
- Throws:
Exception
-
getCorrelationId
protected String getCorrelationId()
-
println
protected void println(String log)
-
printStackTrace
protected void printStackTrace(Exception e)
-
-