/** * Constructor which accepts the given configuration * * @param theConfiguration * The CORS configuration */ public CorsInterceptor(CorsConfiguration theConfiguration) { Validate.notNull(theConfiguration, "theConfiguration must not be null"); myCorsProcessor = new DefaultCorsProcessor(); setConfig(theConfiguration); }
/** * Constructor which accepts the given configuration * * @param theConfiguration * The CORS configuration */ public CorsInterceptor(CorsConfiguration theConfiguration) { Validate.notNull(theConfiguration, "theConfiguration must not be null"); myCorsProcessor = new DefaultCorsProcessor(); setConfig(theConfiguration); }