title: How to specify RESTful resource query parameter of an array of enum objects
body: <p>I have a RESTful resource which should take as a parameter a comma separated list of values.</p>
  
  <pre><code>http://host:port/path/to/resource?enums=abc,def,ghi
  </code></pre>
  
  <p>How do I make RestEasy and Jackson handle this?</p>
  
  <pre><code>@GET
  public ResourceModel getResource( @QueryParam("enums") MyEnum[] values ) {
     return new ResourceModel( values );
  }
  </code></pre>
  
  <p>I know I can make it a simple <code>String</code> with an internal parser. But I would much prefer to be able to specify the type so that Jackson does the conversion for me (returning appropriately numbered error codes if the input is bad, etc).</p>
  
  <p>I've tried making <code>values</code> an array (as shown above), a <code>List&lt;MyEnum&gt;</code> and a custom <code>MyList</code> class extending <code>List&lt;MyEnum&gt;</code> with <code>public static MyList fromString( String commaSeparatedValues )</code> method. Nothing seems to work.</p>
  
  <p>There must be some way to introduce a custom converter for it?</p>
  
  <p>Thanks.
  -Shadow</p>