]> git.aero2k.de Git - tmp/jakarta-migration.git/blob
69c762a605e36f8a949c0876d9befb54fcc891d2
[tmp/jakarta-migration.git] /
1 package org.collectionspace.hello.client;
2
3 import javax.ws.rs.Consumes;
4 import javax.ws.rs.GET;
5 import javax.ws.rs.POST;
6 import javax.ws.rs.PUT;
7 import javax.ws.rs.Path;
8 import javax.ws.rs.PathParam;
9 import javax.ws.rs.Produces;
10 import javax.ws.rs.core.Response;
11
12 import org.collectionspace.hello.Person;
13 import org.jboss.resteasy.client.ClientResponse;
14
15 /**
16  * @version $Revision:$
17  */
18 @Path("/persons/")
19 @Produces({"application/xml"})
20 @Consumes({"application/xml"})
21 public interface PersonProxy {
22
23     /**
24      * 
25      *
26      * @param id
27      * @return
28      */
29     @GET
30     @Path("/{id}")
31     ClientResponse<Person> getPerson(@PathParam("id") Long id);
32
33     @POST
34     ClientResponse<Response> createPerson(Person so);
35
36     @PUT
37     @Path("/{id}")
38     ClientResponse<Person> updatePerson(@PathParam("id") Long id, Person so);
39 }