@Override public Map<String, String> getProxies() throws MBeanException { return proxyService.getProxies(); }
@Override public Map<String, String> getProxies() throws MBeanException { return proxyService.getProxies(); }
@Override public int complete(Session session, CommandLine commandLine, List<String> candidates) { StringsCompleter delegate = new StringsCompleter(); try { Set<String> urls = proxyService.getProxies().keySet(); for (String url : urls) { delegate.getStrings().add(url); } } catch (Exception e) { // nothing to do } return delegate.complete(session, commandLine, candidates); }
@Override public int complete(Session session, CommandLine commandLine, List<String> candidates) { StringsCompleter delegate = new StringsCompleter(); try { Set<String> urls = proxyService.getProxies().keySet(); for (String url : urls) { delegate.getStrings().add(url); } } catch (Exception e) { // nothing to do } return delegate.complete(session, commandLine, candidates); }
@Override public Object execute() throws Exception { ShellTable table = new ShellTable(); table.column("URL"); table.column("ProxyTo"); for (String url : proxyService.getProxies().keySet()) { table.addRow().addContent(url, proxyService.getProxies().get(url)); } table.print(System.out); return null; }
@Override public Object execute() throws Exception { ShellTable table = new ShellTable(); table.column("URL"); table.column("ProxyTo"); for (String url : proxyService.getProxies().keySet()) { table.addRow().addContent(url, proxyService.getProxies().get(url)); } table.print(System.out); return null; }
final Map<String, String> proxies = proxyService.getProxies(); final String statusLine = this.getStatusLine(servlets, web); final JSONWriter jw = new JSONWriter(pw);
final Map<String, String> proxies = proxyService.getProxies(); final String statusLine = this.getStatusLine(servlets, web); final JSONWriter jw = new JSONWriter(pw);