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