(CommandLine cli)
| 62 | } |
| 63 | |
| 64 | @Override |
| 65 | public void runImpl(CommandLine cli) throws Exception { |
| 66 | String getUrl = cli.getOptionValue(SOLR_URL_OPTION); |
| 67 | String response = callGet(getUrl, cli.getOptionValue(CommonCLIOptions.CREDENTIALS_OPTION)); |
| 68 | |
| 69 | // pretty-print the response to stdout |
| 70 | echo(response); |
| 71 | } |
| 72 | |
| 73 | protected String callGet(String url, String credentials) throws Exception { |
| 74 | URI uri = new URI(url.replace("+", "%20")); |