public final class SettingsFilter extends AbstractComponent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SETTINGS_FILTER_PARAM
Can be used to specify settings filter that will be used to filter out matching settings in toXContent method
|
deprecationLogger, logger, settings
Constructor and Description |
---|
SettingsFilter(Settings settings,
java.util.Collection<java.lang.String> patterns) |
Modifier and Type | Method and Description |
---|---|
void |
addFilterSettingParams(RestRequest request) |
Settings |
filter(Settings settings) |
static Settings |
filterSettings(ToXContent.Params params,
Settings settings) |
java.util.Set<java.lang.String> |
getPatterns()
Returns a set of patterns
|
static boolean |
isValidPattern(java.lang.String pattern)
Returns
true iff the given string is either a valid settings key pattern or a simple regular expression |
logDeprecatedSetting, logRemovedSetting, nodeName
public static java.lang.String SETTINGS_FILTER_PARAM
public SettingsFilter(Settings settings, java.util.Collection<java.lang.String> patterns)
public java.util.Set<java.lang.String> getPatterns()
public static boolean isValidPattern(java.lang.String pattern)
true
iff the given string is either a valid settings key pattern or a simple regular expressionRegex
,
AbstractScopedSettings.isValidKey(String)
public void addFilterSettingParams(RestRequest request)
public static Settings filterSettings(ToXContent.Params params, Settings settings)