Package de.xima.fc.config.server
Class FrameAllowedUrlsFileConfigSource
- java.lang.Object
-
- de.xima.fc.config.server.FrameAllowedUrlsFileConfigSource
-
public final class FrameAllowedUrlsFileConfigSource extends Object
Saves allowed iframe URLs to a properties configuration file.- Since:
- 8.6.0
-
-
Constructor Summary
Constructors Constructor Description FrameAllowedUrlsFileConfigSource()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<String>loadDecoded(de.xima.cmn.props.FileBasedPropertiesConfiguration config, String key)Loads and decodes a list of URLs from the configuration file.static voidsave(de.xima.cmn.props.FileBasedPropertiesConfiguration config, String key, List<SettingsParam> urls)Encodes and saves a list of URLs into the configuration file.
-
-
-
Method Detail
-
save
public static void save(de.xima.cmn.props.FileBasedPropertiesConfiguration config, String key, List<SettingsParam> urls) throws org.apache.commons.configuration2.ex.ConfigurationExceptionEncodes and saves a list of URLs into the configuration file.- Parameters:
config- the configuration file to savekey- the property key to use for savingurls- the list of URLs to save- Throws:
org.apache.commons.configuration2.ex.ConfigurationException- if an error occurs while writing to the file
-
loadDecoded
public static List<String> loadDecoded(de.xima.cmn.props.FileBasedPropertiesConfiguration config, String key)
Loads and decodes a list of URLs from the configuration file.- Parameters:
config- the configuration file to read fromkey- the property key to use for reading- Returns:
- a list of decoded URL strings
-
-