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 Details

    • DefaultCorsConfigurationSource

      public DefaultCorsConfigurationSource()
  • Method Details

    • getCorsConfiguration

      public org.springframework.web.cors.CorsConfiguration getCorsConfiguration(javax.servlet.http.HttpServletRequest request)
      Specified by:
      getCorsConfiguration in interface org.springframework.web.cors.CorsConfigurationSource
    • getDefaultOrCreateCorsConfiguration

      protected org.springframework.web.cors.CorsConfiguration getDefaultOrCreateCorsConfiguration(String contextName)
    • readCorsConfiguration

      protected Map<String,String> readCorsConfiguration(String contextName)
    • getDefaultCorsConfiguration

      protected org.springframework.web.cors.CorsConfiguration getDefaultCorsConfiguration()
    • loadPropertiesFromHybrisConfig

      protected Map<String,String> loadPropertiesFromHybrisConfig(String contextName)
    • mergeCorsConfigurations

      protected Map<String,String> mergeCorsConfigurations(Map<String,String> props, Set<CorsConfigurationPropertyModel> current)
    • extractContextName

      protected String extractContextName(javax.servlet.http.HttpServletRequest request)
    • setCorsConfigurationPropertyDao

      public void setCorsConfigurationPropertyDao(DefaultGenericDao<CorsConfigurationPropertyModel> corsConfigurationDao)
    • setConfigPropertiesToCorsConfigurationConverter

      public void setConfigPropertiesToCorsConfigurationConverter(ConfigPropertiesToCorsConfigurationConverter configPropertiesToCorsConfigurationConverter)
    • setPropertiesLoader

      public void setPropertiesLoader(CorsPropertiesLoader propertiesLoader)
    • getPropertiesLoader

      protected CorsPropertiesLoader getPropertiesLoader()