users@jersey.java.net

[Jersey] Re: AbstractSubResourceMethod vs AbstractResourceMethod

From: Jordan Blay <be.special_at_gmail.com>
Date: Tue, 20 Dec 2011 02:05:19 -0800 (PST)

Thanks

So how come my @GET method was only AbstractResourceMethod?

This is my code:

@Component
@Path("/gift")
public class GiftResource {
        
        protected @Context
        UriInfo uriInfo;

        @GET
        /**
         * Get list of gifts available
         * @return
         */
        public Collection<Gift> getGifts(@QueryParam("category") String categories,
@QueryParam("amount") Integer amount) throws RemoteException,
                        ServiceException {
                return null;
        }
        
}

--
View this message in context: http://jersey.576304.n2.nabble.com/AbstractSubResourceMethod-vs-AbstractResourceMethod-tp7111166p7111294.html
Sent from the Jersey mailing list archive at Nabble.com.