检查字符串是否是正常值（含逗号），不是则抛出异常

@param configKey   配置项
@param configValue 配置值
@throws SofaRpcRuntimeException 非法异常
162696
protected static void checkNormalWithComma(String configKey, String configValue) throws SofaRpcRuntimeException {
        checkPattern(configKey, configValue, NORMAL_COMMA, "only allow a-zA-Z0-9 '-' '_' '.' ','");
    }
604570
public static long getLong(Properties config, String key, long defaultValue) {
		String val = config.getProperty(key);
		if (val == null) {
			return defaultValue;
		} else {
			try {
				return Long.parseLong(val);
			} catch (NumberFormatException nfe) {
				throw new IllegalArgumentException("Value for configuration key='" + key + "' is not set correctly. " +
						"Entered value='" + val + "'. Default value='" + defaultValue + "'");
			}
		}
	}
723526
public static void deleteValue(String keyName, String valueName) throws RegistryException {
        try (Key key = Key.open(keyName, KEY_WRITE)) {
            checkError(invoke(Methods.REG_DELETE_VALUE.get(), key.id, toByteArray(valueName)));
        }
    }
478558
protected function encodeConfigValue(ConfigValue $configValue)
	{
		return ($configValue->isDeduplicated()) ? $configValue->getVarName() : $this->encode($configValue->getValue());
	}
1030144
public void setConfig(String configName, String configValue)
  {
    if (config == null)
    {
      config = new Properties();
    }

    if(configValue == null)
    {
      config.remove(configName);
    }
    else
    {
      config.setProperty(configName, configValue);
    }
  }
734760
public static void putValue(String key, Object newValue) {
        Object oldValue = CFG.get(key);
        if (changed(oldValue, newValue)) {
            CFG.put(key, newValue);
            List<RpcConfigListener> rpcConfigListeners = CFG_LISTENER.get(key);
            if (CommonUtils.isNotEmpty(rpcConfigListeners)) {
                for (RpcConfigListener rpcConfigListener : rpcConfigListeners) {
                    rpcConfigListener.onChange(oldValue, newValue);
                }
            }
        }
    }
16590
protected static void checkNotNegativeInteger(String configKey, int configValue) throws SofaRpcRuntimeException {
        if (configValue < 0) {
            throw ExceptionUtils.buildRuntime(configKey, configValue + "", "must >= 0");
        }
    }
995419
protected <S> S getProperty(IClientConfigKey<S> key, @Nullable IClientConfig requestConfig, S defaultValue) {
        if (requestConfig != null && requestConfig.get(key) != null) {
            return requestConfig.get(key);
        } else {
            return clientConfig.get(key, defaultValue);
        }
    }
366580
public Object getMethodConfigValue(String methodName, String configKey, Object defaultValue) {
        Object value = getMethodConfigValue(methodName, configKey);
        return value == null ? defaultValue : value;
    }
584011
public long getLongConfigAttribute(Map<String, Object> props, String key, long defaultValue) {
        if (props.containsKey(key)) {
            return (Long) props.get(key);
        }
        return defaultValue;
    }
831519
<T> T getDefault(String mpConfigPropName, T defaultValue) {
        MPConfigAccessor accessor = cmProvider.mpConfigAccessor;
        if (accessor != null) {
            Object mpConfig = mpConfigRef.get();
            if (mpConfig == Boolean.FALSE) // not initialized yet
                if (!mpConfigRef.compareAndSet(Boolean.FALSE, mpConfig = accessor.getConfig()))
                    mpConfig = mpConfigRef.get();

            if (mpConfig != null)
                defaultValue = accessor.get(mpConfig, mpConfigPropName, defaultValue);
        }
        return defaultValue;
    }
1108964
protected function _getConfigValueArrayMultiple($configKey = null) {
		$result = $this->_getConfigValueArray($configKey);
		if ((count($result) > 0) && (count($result) === count($result, COUNT_RECURSIVE))) {
			$result = [$result];
		}

		return $result;
	}
480225
public function removeConfigValue(\VinceT\AdminConfigurationBundle\Entity\ConfigValue $configValue)
    {
        $this->configValues->removeElement($configValue);
    }
948676
public function value(string $category_key, string $config_key)
    {
        if (!($category = ConfigCategory::where('key', $category_key)->first())) {
            throw new \Exception("Category with name ($category_key) not found");
        }
        if (!($config = $category->configs()->where('key', $config_key)->first())) {
            throw new \Exception("Config with name ($config_key) not found");
        }
        return $config->value;
    }
1027692
public void setPreventResponseFlush(String configValue) {

        OpenCms.getSystemInfo().getServletContainerSettings().setPreventResponseFlush(
            Boolean.valueOf(configValue).booleanValue());
    }
985050
public String get(String key, String defaultValue)
    {
        if( configs.containsKey(key) ){
            return configs.get(key);
        }

        return defaultValue;
    }
1225481
public static void modifySelfConfig(String configAbsoluteClassPath, IConfigKey key, String value)
            throws IOException {
        OneProperties configs = otherConfigs.get(configAbsoluteClassPath);
        if (configs == null) {
            return;
        }
        configs.modifyConfig(key, value);
    }