Hi Ákos,
Ákos Maróy wrote:
> Hi,
>
> I'm looking at the jersey implementation, including the provided
> examples. I'm wondering on the use of annotations used in jersey that
> are not standard when looking at the JAX-RS specification. In particular:
>
> @GET vs. @HttpMethod("GET")
> @Path(value = "/foo") vs. @UriTemplate("/foo")
>
>
> I wonder why these are there, and if it is possible to use the
> annotations specified by the standard in Jersey?
>
What you are comparing is 0.5 and 0.4 of JAX-RS API.
0.4 JAX-RS API is implemented by 0.4 Jersey. The manifest of the
jersey.jar contains the versions of the specification and the
implementation.
Unfortunately there is a delay between the stable release of the API and
the implementation.
A stable release 0.5 of Jersey, implementing 0.5 JAX-RS, will be
available on Jan 18th. In the mean time if you want to work from the
latest API you need to get the latest builds [1] or work from the source
directly. You can find the list of changes from releases here [2].
Paul.
[1]
https://jersey.dev.java.net/servlets/ProjectDocumentList?folderID=7653&expandFolder=7653&folderID=0
[2]
https://jersey.dev.java.net/servlets/ProjectDocumentList?folderID=7653&expandFolder=7653&folderID=0
--
| ? + ? = To question
----------------\
Paul Sandoz
x38109
+33-4-76188109