Package org.springframework.web.cors
Interface CorsConfigurationSource
- All Known Implementing Classes:
AbstractSockJsService
,DefaultSockJsService
,HandlerMappingIntrospector
,ResourceHttpRequestHandler
,SockJsHttpRequestHandler
,TransportHandlingSockJsService
,UrlBasedCorsConfigurationSource
public interface CorsConfigurationSource
Interface to be implemented by classes (usually HTTP request handlers) that provides aCorsConfiguration
instance based on the provided request.- Since:
- 4.2
- Author:
- Sebastien Deleuze
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CorsConfiguration
getCorsConfiguration(HttpServletRequest request)
Return aCorsConfiguration
based on the incoming request.
Method Detail
getCorsConfiguration
CorsConfiguration getCorsConfiguration(HttpServletRequest request)
Return aCorsConfiguration
based on the incoming request.- Returns:
- the associated
CorsConfiguration
, ornull
if none