Class ItemResource
- java.lang.Object
-
- org.glassfish.jersey.examples.linking.resources.ItemResource
-
@Produces({"application/xml","application/json"}) public class ItemResource extends ObjectResource that provides access to one item from a set of items managed by ItemsModel- Author:
- Mark Hadley, Gerard Davison (gerard.davison at oracle.com)
-
-
Constructor Summary
Constructors Constructor Description ItemResource()ItemResource(ItemsModel itemsModel, String id)
-
-
-
Constructor Detail
-
ItemResource
public ItemResource()
-
ItemResource
public ItemResource(ItemsModel itemsModel, String id)
-
-
Method Detail
-
get
@GET public ItemRepresentation get()
-
getId
public String getId()
-
-