Package de.hybris.platform.core.cors.web
Class DefaultCorsConfigurationSource
java.lang.Object
de.hybris.platform.core.cors.web.DefaultCorsConfigurationSource
- All Implemented Interfaces:
org.springframework.web.cors.CorsConfigurationSource
public class DefaultCorsConfigurationSource
extends Object
implements org.springframework.web.cors.CorsConfigurationSource
Configuration provider for the CorsFilter.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringextractContextName(javax.servlet.http.HttpServletRequest request) org.springframework.web.cors.CorsConfigurationgetCorsConfiguration(javax.servlet.http.HttpServletRequest request) protected org.springframework.web.cors.CorsConfigurationprotected org.springframework.web.cors.CorsConfigurationgetDefaultOrCreateCorsConfiguration(String contextName) protected CorsPropertiesLoaderloadPropertiesFromHybrisConfig(String contextName) mergeCorsConfigurations(Map<String, String> props, Set<CorsConfigurationPropertyModel> current) readCorsConfiguration(String contextName) voidsetConfigPropertiesToCorsConfigurationConverter(ConfigPropertiesToCorsConfigurationConverter configPropertiesToCorsConfigurationConverter) voidsetCorsConfigurationPropertyDao(DefaultGenericDao<CorsConfigurationPropertyModel> corsConfigurationDao) voidsetPropertiesLoader(CorsPropertiesLoader propertiesLoader)
-
Constructor Details
-
DefaultCorsConfigurationSource
public DefaultCorsConfigurationSource()
-
-
Method Details
-
getCorsConfiguration
public org.springframework.web.cors.CorsConfiguration getCorsConfiguration(javax.servlet.http.HttpServletRequest request) - Specified by:
getCorsConfigurationin interfaceorg.springframework.web.cors.CorsConfigurationSource
-
getDefaultOrCreateCorsConfiguration
protected org.springframework.web.cors.CorsConfiguration getDefaultOrCreateCorsConfiguration(String contextName) -
readCorsConfiguration
-
getDefaultCorsConfiguration
protected org.springframework.web.cors.CorsConfiguration getDefaultCorsConfiguration() -
loadPropertiesFromHybrisConfig
-
mergeCorsConfigurations
-
extractContextName
-
setCorsConfigurationPropertyDao
public void setCorsConfigurationPropertyDao(DefaultGenericDao<CorsConfigurationPropertyModel> corsConfigurationDao) -
setConfigPropertiesToCorsConfigurationConverter
public void setConfigPropertiesToCorsConfigurationConverter(ConfigPropertiesToCorsConfigurationConverter configPropertiesToCorsConfigurationConverter) -
setPropertiesLoader
-
getPropertiesLoader
-