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 carries the submission coordinates and serializes the threat list.-
Constructor Summary
ConstructorsConstructorDescriptionSubmitToSpartaServer(String server, String token, String commitId) Create a new server submission step. -
Method Summary
Modifier and TypeMethodDescriptionbooleanexport(Collection<Threat> results) Run the export on the provided collection of threats.
-
Constructor Details
-
SubmitToSpartaServer
Create a new server submission step.- Parameters:
server- the server submission url.token- the server submission token.commitId- the commit id to submit the results under.
-
-
Method Details