List of usage examples for org.apache.hadoop.conf Configuration getPropsWithPrefix
public Map<String, String> getPropsWithPrefix(String confPrefix)
From source file:org.apache.falcon.security.XFrameOptionsFilter.java
License:Apache License
/** * Constructs a mapping of configuration properties to be used for filter * initialization. The mapping includes all properties that start with the * specified configuration prefix. Property names in the mapping are trimmed * to remove the configuration prefix./*w w w . ja v a 2s .com*/ * * @param conf configuration to read * @param confPrefix configuration prefix * @return mapping of configuration properties to be used for filter * initialization */ public static Map<String, String> getFilterParams(Configuration conf, String confPrefix) { return conf.getPropsWithPrefix(confPrefix); }