MCPcopy Create free account
hub / github.com/apache/solr / runImpl

Method runImpl

solr/core/src/java/org/apache/solr/cli/ApiTool.java:64–71  ·  view source on GitHub ↗
(CommandLine cli)

Source from the content-addressed store, hash-verified

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"));

Callers

nothing calls this directly

Calls 2

callGetMethod · 0.95
echoMethod · 0.80

Tested by

no test coverage detected