Package de.xima.fc.config.server
Class FSHttpHeadersFactory
- java.lang.Object
-
- de.xima.fc.config.server.FSHttpHeadersFactory
-
public final class FSHttpHeadersFactory extends Object
Factory for creatingfrontend server HTTP headers- Since:
- 8.6.0
-
-
Constructor Summary
Constructors Constructor Description FSHttpHeadersFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HttpHeadersFSbuild(FrontendServer fs)CreatesHttpHeadersFSusing only the configuration of the provided frontend server, without merging any general default settings.static HttpHeadersFSbuild(FrontendServer fs, HttpHeadersDefaults defaults)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.static List<SettingsParam>getInheritedFrameIntegrationUrls(HttpHeadersDefaults defaults, boolean frontend)Returns the allowed iframe URLs that frontend servers inherit from the general settings.
-
-
-
Method Detail
-
build
public static HttpHeadersFS build(FrontendServer fs)
CreatesHttpHeadersFSusing 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 serverdefaults- 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 settingsfrontend-truefor forms (frontend),falsefor 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 onesdefaults- Default headers from general settings- Returns:
- the URLs to save
- Since:
- 8.6.2
-
-