@InterfaceAudience.Public @InterfaceStability.Evolving public class Base64StringConfigurationBasicValidator extends Object implements ConfigurationValidator
| Constructor and Description |
|---|
Base64StringConfigurationBasicValidator(String configKey,
String defaultVal,
boolean throwIfInvalid) |
| Modifier and Type | Method and Description |
|---|---|
String |
getConfigKey() |
T |
getDefaultVal() |
boolean |
getThrowIfInvalid() |
String |
validate(String configValue)
This method handles the base case where the configValue is null, based on the throwIfInvalid it either throws or returns the defaultVal,
otherwise it returns null indicating that the configValue needs to be validated further.
|
public String validate(String configValue) throws InvalidConfigurationValueException
validate in interface ConfigurationValidatorconfigValue - the configuration value set by the userInvalidConfigurationValueException - in case the configValue is null and required to be setpublic T getDefaultVal()
public String getConfigKey()
public boolean getThrowIfInvalid()
Copyright © 2008–2020 Apache Software Foundation. All rights reserved.