Class SubmitToSpartaServer
java.lang.Object
be.kuleuven.cs.distrinet.sparta.cli.cmd.export.SubmitToSpartaServer
- All Implemented Interfaces:
Exporter
Exporter that submits the analysis results to a SPARTA server via the command line. The
HTTP mechanics are delegated to
SpartaServerClient (shared with the CI runner);
this class only maps the CLI options to a submission and serializes the threat list.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.commons.cli.Option[]Get the options that have to be processed for determining if this command should run.booleanprocess(org.apache.commons.cli.CommandLine cmd, Collection<Threat> results) Process the parsed options and run the export if needed on the provided collection of threats.
-
Constructor Details
-
SubmitToSpartaServer
public SubmitToSpartaServer()
-
-
Method Details
-
getOptions
public org.apache.commons.cli.Option[] getOptions()Description copied from interface:ExporterGet the options that have to be processed for determining if this command should run.- Specified by:
getOptionsin interfaceExporter- Returns:
- the array of options this command relies upon.
-
process
Description copied from interface:ExporterProcess the parsed options and run the export if needed on the provided collection of threats.
-