]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
fcaefa0504e9061b6fb9725f0b441c464041b7ee
[tmp/jakarta-migration.git] /
1 package org.collectionspace.hello.client;
2
3 import javax.ws.rs.Consumes;
4 import javax.ws.rs.DELETE;
5 import javax.ws.rs.GET;
6 import javax.ws.rs.POST;
7 import javax.ws.rs.PUT;
8 import javax.ws.rs.Path;
9 import javax.ws.rs.PathParam;
10 import javax.ws.rs.Produces;
11 import javax.ws.rs.core.Response;
12
13 import org.collectionspace.hello.CollectionObject;
14 import org.collectionspace.hello.CollectionObjectList;
15 import org.jboss.resteasy.client.ClientResponse;
16
17 /**
18  * @version $Revision:$
19  */
20 @Path("/collectionobjects/")
21 @Produces({"application/xml"})
22 @Consumes({"application/xml"})
23 public interface CollectionObjectProxy {
24
25     @GET
26     @Path("/{id}")
27     ClientResponse<CollectionObject> getCollectionObject(@PathParam("id") String id);
28
29     // List
30     @GET
31     ClientResponse<CollectionObjectList> getCollectionObjectList();
32
33     @POST
34     ClientResponse<Response> createCollectionObject(CollectionObject co);
35
36     @PUT
37     @Path("/{id}")
38     ClientResponse<CollectionObject> 
39       updateCollectionObject(@PathParam("id") String id, CollectionObject co);
40
41     @DELETE
42     @Path("/{id}")
43     ClientResponse<Response> deleteCollectionObject(@PathParam("id") String id);
44 }