public abstract class AbstractClientImpl extends Object implements AstClient
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ERROR_PREFIX |
| Constructor and Description |
|---|
AbstractClientImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
applyScaResultsFilters(ASTResultsWrapper scaResults) |
protected com.cx.restclient.dto.ScanResults |
executeScan(com.cx.restclient.configuration.CxScanConfig cxScanConfig) |
protected Map<Filter.Severity,Integer> |
getFindingCountMap(com.cx.restclient.ast.dto.common.SummaryResults summary) |
protected abstract com.cx.restclient.configuration.CxScanConfig |
getScanConfig(ScanParams scaParams) |
ASTResultsWrapper |
scanLocalSource(ScanParams scanParams) |
ASTResultsWrapper |
scanRemoteRepo(ScanParams scanParams)
Create new SCA scan for a new/existing project with a remote repository source
|
protected abstract ASTResultsWrapper |
toResults(com.cx.restclient.dto.ScanResults scanResults) |
protected abstract void |
validate(ScanParams scaParams) |
protected void |
validateNotEmpty(String parameter,
String parameterDescr) |
protected static final String ERROR_PREFIX
public ASTResultsWrapper scanRemoteRepo(ScanParams scanParams) throws IOException
AstClientscanRemoteRepo in interface AstClientIOExceptionpublic ASTResultsWrapper scanLocalSource(ScanParams scanParams) throws IOException
scanLocalSource in interface AstClientIOExceptionprotected abstract void applyScaResultsFilters(ASTResultsWrapper scaResults)
protected abstract ASTResultsWrapper toResults(com.cx.restclient.dto.ScanResults scanResults)
protected com.cx.restclient.dto.ScanResults executeScan(com.cx.restclient.configuration.CxScanConfig cxScanConfig)
throws IOException
IOExceptionprotected Map<Filter.Severity,Integer> getFindingCountMap(com.cx.restclient.ast.dto.common.SummaryResults summary)
protected abstract com.cx.restclient.configuration.CxScanConfig getScanConfig(ScanParams scaParams)
protected abstract void validate(ScanParams scaParams)
Copyright © 2020. All rights reserved.