Class FSHttpHeadersFactory

    • Constructor Detail

      • FSHttpHeadersFactory

        public FSHttpHeadersFactory()
    • Method Detail

      • build

        public static HttpHeadersFS build​(FrontendServer fs)
        Creates HttpHeadersFS using only the configuration of the provided frontend server, without merging any general default settings.
        Parameters:
        fs - the frontend server
        Returns:
        frontend server HTTP headers without default settings applied
      • build

        public static HttpHeadersFS build​(FrontendServer fs,
                                          HttpHeadersDefaults defaults)
        Parameters:
        fs - frontend server
        defaults - Default headers from general settings
        Returns:
        frontend server HTTP headers merged with default
      • getInheritedFrameIntegrationUrls

        public static List<SettingsParam> getInheritedFrameIntegrationUrls​(HttpHeadersDefaults defaults,
                                                                           boolean frontend)
        Returns the allowed iframe URLs that frontend servers inherit from the general settings. URLs are only inherited while they are in effect there.
        Parameters:
        defaults - Default headers from general settings
        frontend - true for forms (frontend), false for the backend
        Returns:
        the inherited URLs, or an empty list
        Since:
        8.6.2
      • getFrameIntegrationUrlsToSave

        public static List<DeactivatableSettingsParam<SettingsParam>> getFrameIntegrationUrlsToSave​(List<DeactivatableSettingsParam<SettingsParam>> urls,
                                                                                                    HttpHeadersDefaults defaults)
        Returns the allowed backend iframe URLs of a frontend server to save: its own URLs and the deactivated inherited URLs. Active inherited URLs are not saved, they are inherited again when loading.
        Parameters:
        urls - the allowed backend iframe URLs of the frontend server, including the inherited ones
        defaults - Default headers from general settings
        Returns:
        the URLs to save
        Since:
        8.6.2