use of com.checkmarx.sdk.dto.ast.ASTResults in project cx-flow by checkmarx-ltd.
the class AbstractASTScanner method actualScan.
private ScanResults actualScan(ScanRequest scanRequest, String path) {
ScanResults result = null;
log.info("--------------------- Initiating new {} scan ---------------------", scanType);
AstScaResults internalResults = new AstScaResults(new SCAResults(), new ASTResults());
try {
ScanParams sdkScanParams = toSdkScanParams(scanRequest, path);
internalResults = client.scan(sdkScanParams);
logRequest(scanRequest, internalResults, OperationResult.successful());
result = toScanResults(internalResults);
} catch (Exception e) {
treatError(scanRequest, internalResults, e);
}
return result;
}
use of com.checkmarx.sdk.dto.ast.ASTResults in project checkmarx-spring-boot-java-sdk by checkmarx-ltd.
the class AstScanner method toResults.
/**
* Convert Common Client representation of AST results into an object from this SDK.
*/
@Override
protected AstScaResults toResults(ResultsBase scanResults) {
ASTResults astResults = (ASTResults) scanResults;
validateNotNull(astResults);
return new AstScaResults(new SCAResults(), astResults);
}
Aggregations