Hi firends,<div>My preference goes for XML config. CORS is more a &quot;external&quot; config aspect rather than being part of the &quot;domain/core&quot;.</div><div>Seb</div><div><br></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Wed, Nov 14, 2012 at 12:26 PM, Bruno Oliveira <span dir="ltr">&lt;<a href="mailto:bruno@abstractj.org" target="_blank">bruno@abstractj.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi my friend, at first glance looks like the XML option is more readable.<br>
<br>
But before we move forward I&#39;d like to hear more opinions about it.<br>
<br>
<br>
--<br>
&quot;The measure of a man is what he does with power&quot; - Plato<br>
-<br>
@abstractj<br>
-<br>
Volenti Nihil Difficile<br>
<div class="im"><br>
<br>
<br>
On Tuesday, November 13, 2012 at 2:15 PM, Daniel Bevenius wrote:<br>
<br>
&gt; To help clarify the options here the following gist contains examples of the two suggestions provided so far:<br>
&gt; <a href="https://gist.github.com/4066691" target="_blank">https://gist.github.com/4066691</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div><div class="im">&gt; On 13 November 2012 16:49, Daniel Bevenius &lt;<a href="mailto:daniel.bevenius@gmail.com">daniel.bevenius@gmail.com</a> (mailto:<a href="mailto:daniel.bevenius@gmail.com">daniel.bevenius@gmail.com</a>)&gt; wrote:<br>

&gt; &gt; &gt; i dislike xml configuration files, so i would vote for an Annotation.<br>
&gt; &gt;<br>
&gt; &gt; Yeah, I agree and we are avoiding any xml right now.<br>
&gt; &gt; So, how about we provide some hopefully good defaults for CORS and then users can provide there own @Producer. We will provide at builder api to create the config instance so it won&#39;t be a lot of work for users.<br>

&gt; &gt;<br>
&gt; &gt; Should CORS be enabled by default?<br>
&gt; &gt;<br>
&gt; &gt;<br>
</div>&gt; &gt; On 13 November 2012 13:35, Lucas Holmquist &lt;<a href="mailto:lholmqui@redhat.com">lholmqui@redhat.com</a> (mailto:<a href="mailto:lholmqui@redhat.com">lholmqui@redhat.com</a>)&gt; wrote:<br>
<div class="im">&gt; &gt; &gt;<br>
&gt; &gt; &gt; On Nov 13, 2012, at 4:18 AM, Daniel Bevenius &lt;<a href="mailto:daniel.bevenius@gmail.com">daniel.bevenius@gmail.com</a> (mailto:<a href="mailto:daniel.bevenius@gmail.com">daniel.bevenius@gmail.com</a>)&gt; wrote:<br>

&gt; &gt; &gt; &gt; I&#39;m working on adding CORS support there are several things that can be configured in this case. Below is an example of the options that are currently available:<br>
&gt; &gt; &gt; &gt; public interface CorsConfiguration {<br>
&gt; &gt; &gt; &gt; public abstract boolean isCorsSupportEnabled();<br>
&gt; &gt; &gt; &gt; public abstract boolean exposeHeaders();<br>
&gt; &gt; &gt; &gt; public abstract String getExposeHeaders();<br>
&gt; &gt; &gt; &gt; public abstract boolean anyOrigin();<br>
&gt; &gt; &gt; &gt; public abstract boolean allowCookies();<br>
&gt; &gt; &gt; &gt; public abstract boolean hasMaxAge();<br>
&gt; &gt; &gt; &gt; public abstract long getMaxAge();<br>
&gt; &gt; &gt; &gt; public abstract Set&lt;String&gt; getValidRequestMethods();<br>
&gt; &gt; &gt; &gt; public abstract Set&lt;String&gt; getValidRequestHeaders();<br>
&gt; &gt; &gt; &gt; }<br>
</div>&gt; &gt; &gt; &gt; How do we want users to configure these configuration options? Using a CDI annotation with &quot;sensible&quot; default values or specify them in web.xml (<a href="http://web.xml" target="_blank">http://web.xml</a>)?<br>

<div class="im">&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; i dislike xml configuration files, so i would vote for an Annotation. but thats personal preference<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; cheers,<br>
&gt; &gt; &gt; &gt; /Dan<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; &gt; aerogear-dev mailing list<br>
</div>&gt; &gt; &gt; &gt; <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a> (mailto:<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a>)<br>
<div class="im">&gt; &gt; &gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; aerogear-dev mailing list<br>
</div>&gt; &gt; &gt; <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a> (mailto:<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a>)<br>
<div class="im">&gt; &gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; aerogear-dev mailing list<br>
</div>&gt; <a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a> (mailto:<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a>)<br>
<div class="HOEnZb"><div class="h5">&gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
<br>
<br>
<br>
_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
</div></div></blockquote></div><br></div>