users@jax-rs-spec.java.net

[jax-rs-spec users] [jsr339-experts] best match for wildcard?

From: Bill Burke <bburke_at_redhat.com>
Date: Sun, 19 May 2013 18:36:33 -0400

If the Content-Type header is null, then the implicit media type of the
request is "*/*", correct? Given that, which method would match?

@POST
@Path("start")
public Response start();

@POST
@Consumes(MediaType.APPLICATION_XML)
@Path("start")
public Response start(Action action);


What is the "best match" for a Content-Type of "*/*"? Another "*/*"
takes precedence in this case because it is an exact match?
-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com