Sergey Beryozkin wrote:
Hi
This update is in place now, so if you're using CXF JAX-RS then please give it
a try.
Please note that a newer 0.6 version is already available, and from the user's
perspective,
upgrading to 0.6 will mean that existing @UriParam annotations will need to be
replaced with
@PathParam ones. It seems like the only change in 0.6 which can affect the
existing user's code.
0.6 jar is not available on Maven yet, so this upgrade will be done a bit later
Cheers, Sergey
----- Original Message -----
From: "Sergey Beryozkin" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, February 15, 2008 4:55 PM
Subject: JAX-RS API version change
Hi
Currently, the CXF JAX-RS implementation depend upon a 0.4 version of the
jaxrs-api.
I'm looking into upgrading it to support a latest 0.5 version.
There're some changes from 0.4 to 0.5 which would affect users.
The following is the list of what has changed between 0.4 and 0.5 which will or
may have an effect on the
current JAX-RS applications built on top of CXF :
1. @HttpMethod annotation is no longer supported, instead
@GET, @POST, @PUT and @DELETE annotations will be used
2. @UriTemplate is not longer supported, @Path is used instead
3. EntityProvider interface has gone too, instead it has been split into two
interfaces,
MessageBodyReader and MessageBodyWriter. If you provide custom providers and
you'd like to have the same instance to handle both reads and writes, then
you'd have to have its class implementing both interfaces.
Existing spring configuration for injecting custom providers won't get changed,
the runtime will sort difrerent types of handlers
into the right lists itself...
Cheers, Sergey
----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland
----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland
This is cool. Did you update the JAX-RS sample too?
I do have a question. 0.6 started implementing a REST client API. Does
CXF plan to use this Client API or do you suggesting using the HTTP
Client used in samples?
Thank you
Arul