title: Jersey Bean Validation interpreting application/x-www-form-urlencoded as a bean
body: <p>I am working on a REST service using the Jersey RESTful Web Services framework.</p>
  
  <p>It is required to consume a url encoded form content-type and have it be interpreted/validated as a bean.</p>
  
  <pre><code>@POST @Path("put")
  @Consumes("application/x-www-form-urlencoded")
  @NotNull (message="Couldn't put this bean in the can, sorry")
  public Response putABean( @Valid final MrBean bean ){ ... }
  </code></pre>
  
  <hr>
  
  <pre><code>@XmlRootElement
  public class MrBean {
  
  @DecimalMin(value = "18" , message= "value must be at least 18")
  @DecimalMax(value = "99" , message= "value must at most be 99")
  @NotNull(message = "{null.generic}")
  private Long age;
  
  @NotNull(message = "{null.name.first}")
  private String firstName;
  
  @NotNull(message = "{null.name.last}")
  private String lastName;
  
  @Pattern(regexp="[0-9]{3,9}", message="{invalid.phone}")
  @NotNull(message = "{null.generic}")
  private String phone;
  
  ...
  
  }
  </code></pre>
  
  <p>This is possible when the resource consumes application/json or application/xml , but in the case of application/x-www-form-urlencoded I receive a '415 - Unsupported Media Type' response.</p>
  
  <p>My understanding is that this isn't supported out of the box, and needs a feature registered similar to how it's done here:
  <a href="https://jersey.java.net/documentation/latest/media.html" rel="nofollow">https://jersey.java.net/documentation/latest/media.html</a></p>