Hi,

I've just updated the JAX-RS extension to API version 0.9. Here the most important API changes, that are incompatible to the JAX-RS 0.8

   * renamed @ProducedMime to @Produces
   * renamed @ConsumedMime to @Consumes
   * renamed MessageBodyWorkers to Providers (provides also access to
     exception mapper and context resolver
   * the JAX-RS API uses java.util.Locale instead of String
   * UriInfo.getPlatonicRequestBuilder() and getPathExtension()
     removed; add getConnegExtension()

All old JUnit tests passing, except the tests for UriInfo.getPlatonicRequestBuilder(), which will not run now. The content negotiation by file extension will perhaps get fully removed from the JAX-RS-API for design reasons. See:

   * https://jsr311.dev.java.net/servlets/ReadMsg?list=dev&msgNo=1458
     (by Roy Fielding)
   * https://jsr311.dev.java.net/servlets/ReadMsg?list=dev&msgNo=1459
     (by Marc Hadley, JAX-RS specifiation leader)

Because of that I will not update this feature, until there is a decision about that. If you use the userAgentTunnel, the content negotiation by file extension is typically not needed. And Restlet supports the content negotiation by file extension for GET and HEAD, so it could be optionally available, if someone needs it.

best regards
  Stephan

Reply via email to