Class SettingsFilter


public final class SettingsFilter
extends java.lang.Object
A class that allows to filter settings objects by simple regular expression patterns or full settings keys. It's used for response filtering on the rest layer to for instance filter out sensitive information like access keys.
  • Field Summary

    Modifier and Type Field 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
  • Constructor Summary

    Constructor Description
    SettingsFilter​(java.util.Collection<java.lang.String> patterns)  
  • Method Summary

    Modifier and Type Method 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait