Class FrameAllowedUrlsFileConfigSource


  • public final class FrameAllowedUrlsFileConfigSource
    extends Object
    Saves allowed iframe URLs to a properties configuration file.
    Since:
    8.6.0
    • Constructor Detail

      • FrameAllowedUrlsFileConfigSource

        public FrameAllowedUrlsFileConfigSource()
    • Method Detail

      • save

        public static void save​(de.xima.cmn.props.FileBasedPropertiesConfiguration config,
                                String key,
                                List<SettingsParam> urls)
                         throws org.apache.commons.configuration2.ex.ConfigurationException
        Encodes and saves a list of URLs into the configuration file.
        Parameters:
        config - the configuration file to save
        key - the property key to use for saving
        urls - 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 from
        key - the property key to use for reading
        Returns:
        a list of decoded URL strings