Sergey Beryozkin wrote:
> Hi
>
> I have few questions about the @Path annotations
>
> 1. Is it a requirement that a root resource class is annotated with @Path ?
> Is it an error if a root resource is missing this annotation ? If not
> then can a default value like "/" be used ?
>
@Path is not required. I think you either need a http method annotation
and/or a path annotation someplace. "/" can be used as well.
> The spec says that root resources are directly annotated with @Path but
> no more information is given
>
> 2. Can classes representing subresources locators be annotated with @Path ?
>
Yes.
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com