Evidencepath how to be set
RichardVanMaaren opened this issue · 1 comments
RichardVanMaaren commented
In what way can the evidencePath be set in the method : protected void saveEvidence(TransmissionResponse transmissionResponse, File evidencePath, Span root)
Can this be done in the oxalis.conf ?
Best regards,
Richard
RichardVanMaaren commented
Appologies, found it allready, will test it :
static OptionParser getOptionParser() {
OptionParser optionParser = new OptionParser();
fileSpec = optionParser.accepts("f", "File(s) to be transmitted")
.withRequiredArg().ofType(String.class);
docType = optionParser.accepts("d", "Document type")
.withRequiredArg();
profileType = optionParser.accepts("p", "Profile type")
.withRequiredArg();
sender = optionParser.accepts("s", "sender [e.g. 9908:976098897]")
.withRequiredArg();
recipient = optionParser.accepts("r", "recipient [e.g. 9908:976098897]")
.withRequiredArg();
evidencePath = optionParser.accepts("e", "Evidence storage dir")
.withRequiredArg().ofType(File.class);
useRequestFactory = optionParser.accepts("factory", "Use TransmissionRequestFactory (no overrides!)")
.withOptionalArg().ofType(Boolean.class).defaultsTo(false);
repeatCount = optionParser.accepts("repeat", "Number of repeats to use ")
.withRequiredArg().ofType(Integer.class).defaultsTo(1);
probe = optionParser.accepts("probe", "Perform probing of endpoint.")
.withRequiredArg().ofType(Boolean.class).defaultsTo(false);
destinationUrl = optionParser.accepts("u", "destination URL")
.requiredIf(probe, protocol).withRequiredArg();
destinationCertificate = optionParser.accepts("cert", "Receiving AP's certificate (when overriding endpoint)")
.requiredIf(destinationUrl).withRequiredArg().ofType(File.class);
protocol = optionParser.accepts("protocol", "Protocol to be used")
.withRequiredArg().ofType(String.class).defaultsTo(TransportProfile.AS2_1_0.getIdentifier());
maxTransmissions = optionParser.accepts("m", "Max number of transmissions")
.withRequiredArg().ofType(Integer.class).defaultsTo(Integer.MAX_VALUE);
tag = optionParser.accepts("tag", "User defined tag")
.withRequiredArg();
sleep = optionParser.accepts("sleep", "Sleep standalone for x seconds after transmission.")
.withRequiredArg().ofType(Integer.class).defaultsTo(0);
return optionParser;
}