Example usage for org.springframework.web.cors DefaultCorsProcessor DefaultCorsProcessor

List of usage examples for org.springframework.web.cors DefaultCorsProcessor DefaultCorsProcessor

Introduction

In this page you can find the example usage for org.springframework.web.cors DefaultCorsProcessor DefaultCorsProcessor.

Prototype

DefaultCorsProcessor

Source Link

Usage

From source file:ca.uhn.fhir.rest.server.interceptor.CorsInterceptor.java

/**
 * Constructor which accepts the given configuration
 * //from   w w w  .  j  a v a  2  s. c  o m
 * @param theConfiguration
 *           The CORS configuration
 */
public CorsInterceptor(CorsConfiguration theConfiguration) {
    Validate.notNull(theConfiguration, "theConfiguration must not be null");
    myCorsProcessor = new DefaultCorsProcessor();
    setConfig(theConfiguration);
}