Mercurial > hg > digilibservice
comparison src/main/java/info/textgrid/rest.java @ 0:6a163b1bcd4d
first checkin
author | casties |
---|---|
date | Thu, 05 May 2011 16:19:03 +0200 |
parents | |
children | 8f5216c9d623 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:6a163b1bcd4d |
---|---|
1 package info.textgrid; | |
2 | |
3 import info.textgrid.namespaces.middleware.digilib.services.digilibservice.DigilibService; | |
4 | |
5 import javax.jws.WebService; | |
6 import javax.ws.rs.GET; | |
7 import javax.ws.rs.Path; | |
8 import javax.ws.rs.Produces; | |
9 import javax.xml.ws.Holder; | |
10 | |
11 @WebService(targetNamespace = "http://textgrid.info/namespaces/middleware/digilib/services/DigilibService", | |
12 serviceName="DigilibService", portName="DigilibServiceSOAP", | |
13 endpointInterface="info.textgrid.namespaces.middleware.digilib.services.digilibservice.DigilibService") | |
14 public class rest implements DigilibService { | |
15 | |
16 | |
17 | |
18 @GET | |
19 @Path("/hello") | |
20 @Produces("text/plain") | |
21 public String getVersion() { | |
22 return "hello"; | |
23 } | |
24 | |
25 @Override | |
26 public void getScaledImage(String sessionId, String uri, | |
27 String logParameter, Holder<String> mimeType, | |
28 Holder<byte[]> imageData) { | |
29 // TODO Auto-generated method stub | |
30 | |
31 } | |
32 | |
33 } |