if (list.isSet()) { list.plotListing(); return;
public void plotListing() { System.out.println(getListing()); }
public TraceToolCommandConfig(GeneralDelegate delegate) { super(delegate); this.generalDelegate = delegate; this.protocolVersionDelegate = new ProtocolVersionDelegate(); this.workflowOutputDelegate = new WorkflowOutputDelegate(); this.workflowInputDelegate = new WorkflowInputDelegate(); this.workflowTypeDelegate = new WorkflowTypeDelegate(); this.filterDelegate = new FilterDelegate(); this.configOutputDelegate = new ConfigOutputDelegate(); this.listDelegate = new ListDelegate(); this.ciphersuiteDelegate = new CiphersuiteDelegate(); this.runningModeDelegate = new RunningModeDelegate(); addDelegate(protocolVersionDelegate); addDelegate(ciphersuiteDelegate); addDelegate(workflowInputDelegate); addDelegate(workflowOutputDelegate); addDelegate(workflowTypeDelegate); addDelegate(filterDelegate); addDelegate(configOutputDelegate); addDelegate(listDelegate); addDelegate(runningModeDelegate); }
this.certificateDelegate = new CertificateDelegate(); this.filterDelegate = new FilterDelegate(); this.listDelegate = new ListDelegate(); this.configOutputDelegate = new ConfigOutputDelegate(); this.executorTypeDelegate = new ExecutorTypeDelegate();
public static void main(String args[]) { ClientCommandConfig config = new ClientCommandConfig(new GeneralDelegate()); JCommander commander = new JCommander(config); try { commander.parse(args); if (config.getGeneralDelegate().isHelp()) { commander.usage(); return; } ListDelegate list = (ListDelegate) config.getDelegate(ListDelegate.class); if (list.isSet()) { list.plotListing(); return; } try { Config tlsConfig = config.createConfig(); TlsClient client = new TlsClient(); client.startTlsClient(tlsConfig); } catch (Exception E) { LOGGER.error("Encountered an uncaught Exception aborting. See debug for more info.", E); } } catch (ParameterException E) { LOGGER.error("Could not parse provided parameters. " + E.getLocalizedMessage()); LOGGER.debug(E); commander.usage(); } }
this.certificateDelegate = new CertificateDelegate(); this.filterDelegate = new FilterDelegate(); this.listDelegate = new ListDelegate(); this.configOutputDelegate = new ConfigOutputDelegate(); this.timeoutDelegate = new TimeoutDelegate();
if (list.isSet()) { list.plotListing(); return;
this.filterDelegate = new FilterDelegate(); this.configOutputDelegate = new ConfigOutputDelegate(); this.listDelegate = new ListDelegate(); this.starttlsDelegate = new StarttlsDelegate(); addDelegate(listDelegate);
if (list.isSet()) { list.plotListing(); return;