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

Method runImpl

solr/core/src/java/org/apache/solr/cli/AuthTool.java:470–482  ·  view source on GitHub ↗
(CommandLine cli)

Source from the content-addressed store, hash-verified

468 BLOCK_UNKNOWN_OPTION.getLongOpt(), cli.getOptionValue(BLOCK_UNKNOWN_OPTION));
469 ensureArgumentIsValidBooleanIfPresent(
470 UPDATE_INCLUDE_FILE_OPTION.getLongOpt(), cli.getOptionValue(UPDATE_INCLUDE_FILE_OPTION));
471
472 String type = cli.getOptionValue(TYPE_OPTION, "basicAuth");
473 // switch structure is here to support future auth options like oAuth
474 if (type.equals("basicAuth")) {
475 boolean updateIncludeFileOnly =
476 Boolean.parseBoolean(cli.getOptionValue(UPDATE_INCLUDE_FILE_OPTION, "false"));
477 String zkHost = null;
478 if (!updateIncludeFileOnly) {
479 try {
480 zkHost = CLIUtils.getZkHost(cli);
481 } catch (Exception e) {
482 echoIfVerbose("Could not resolve ZooKeeper host: " + e.getMessage());
483 }
484 }
485 AuthParams params =

Callers

nothing calls this directly

Calls 3

handleBasicAuthMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected