]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
2b6f2370b97180ff9d9ee21e39a991b03ed0491f
[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.Person;
14 import org.collectionspace.hello.Persons;
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 PersonProxy {
24
25     @GET
26     ClientResponse<Persons> getPersons();
27
28     @GET
29     @Path("/{id}")
30     ClientResponse<Person> getPerson(@PathParam("id") Long id);
31
32     @POST
33     ClientResponse<Response> createPerson(Person so);
34
35     @PUT
36     @Path("/{id}")
37     ClientResponse<Person> updatePerson(@PathParam("id") Long id, Person so);
38
39     @DELETE
40     @Path("/{id}")
41     ClientResponse<Response> deletePerson(@PathParam("id") Long id);
42 }