]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
53265de84463014001f452a284d51ce162729c46
[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.PersonNuxeo;
14 import org.collectionspace.hello.People;
15 import org.jboss.resteasy.client.ClientResponse;
16
17 /**
18  * @version $Revision:$
19  */
20 @Path("/persons/")
21 @Produces({"application/xml"})
22 @Consumes({"application/xml"})
23 public interface PersonNuxeoProxy {
24
25     @GET
26     ClientResponse<People> getPeople();
27
28     @GET
29     @Path("/{id}")
30     ClientResponse<PersonNuxeo> getPerson(@PathParam("id") String id);
31
32     @POST
33     ClientResponse<Response> createPerson(PersonNuxeo so);
34
35     @PUT
36     @Path("/{id}")
37     ClientResponse<PersonNuxeo> updatePerson(@PathParam("id") String id, PersonNuxeo so);
38
39     @DELETE
40     @Path("/{id}")
41     ClientResponse<Response> deletePerson(@PathParam("id") String id);
42 }