title: Passing list of enum values as HTTP query parameters
body: <p>I want to pass list of enum values as HTTP query parameter. The entry point of the server side looks like this:</p>
  
  <pre><code>@GET
  @Path("/getMyResult")
  public MyResultType getMyResult(@QueryParam("me") final List&lt;MyEnum&gt; myEnums) 
  </code></pre>
  
  <p>This cannot be modified. Consider <code>MyEnum</code> contains values <code>MyValue1</code>, <code>MyValue2</code>, <code>MyValue3</code> and <code>MyValue4</code>. (<code>MyResultType</code> is not relevant for this question.) Passing only one value, as follows, works fine (which is a bit strange for me):</p>
  
  <pre><code>http://localhost/getMyResult?me=MyValue1
  </code></pre>
  
  <p>However, passing list of elements this way:</p>
  
  <pre><code>http://localhost/getMyResult?me=[MyValue1,MyValue3,MyValue4]
  </code></pre>
  
  <p>or this way:</p>
  
  <pre><code>http://localhost/getMyResult?me=MyValue1,MyValue3,MyValue4
  </code></pre>
  
  <p>or this way:</p>
  
  <pre><code>http://localhost/getMyResult?me=["MyValue1","MyValue3","MyValue4"]
  </code></pre>
  
  <p>does not work, it throws exception something like this (error message to the first option):</p>
  
  <pre><code>RESTEASY001720: Unable to extract parameter from http request: javax.ws.rs.QueryParam(\"me\") [...]
  No enum constant com.mycompany.myapp.MyEnum.[MyValue1,MyValue3,MyValue4]
  </code></pre>
  
  <p>Can anyone tell me how to pass a list of <code>MyEnum</code> elements as HTTP GET query parameter? Thank you!</p>