annotate src/main/java/info/textgrid/rest.java @ 1:8f5216c9d623

soap test access works
author casties
date Thu, 05 May 2011 16:33:13 +0200
parents 6a163b1bcd4d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
6a163b1bcd4d first checkin
casties
parents:
diff changeset
1 package info.textgrid;
6a163b1bcd4d first checkin
casties
parents:
diff changeset
2
6a163b1bcd4d first checkin
casties
parents:
diff changeset
3 import info.textgrid.namespaces.middleware.digilib.services.digilibservice.DigilibService;
6a163b1bcd4d first checkin
casties
parents:
diff changeset
4
6a163b1bcd4d first checkin
casties
parents:
diff changeset
5 import javax.jws.WebService;
6a163b1bcd4d first checkin
casties
parents:
diff changeset
6 import javax.ws.rs.GET;
6a163b1bcd4d first checkin
casties
parents:
diff changeset
7 import javax.ws.rs.Path;
6a163b1bcd4d first checkin
casties
parents:
diff changeset
8 import javax.ws.rs.Produces;
6a163b1bcd4d first checkin
casties
parents:
diff changeset
9 import javax.xml.ws.Holder;
6a163b1bcd4d first checkin
casties
parents:
diff changeset
10
6a163b1bcd4d first checkin
casties
parents:
diff changeset
11 @WebService(targetNamespace = "http://textgrid.info/namespaces/middleware/digilib/services/DigilibService",
6a163b1bcd4d first checkin
casties
parents:
diff changeset
12 serviceName="DigilibService", portName="DigilibServiceSOAP",
6a163b1bcd4d first checkin
casties
parents:
diff changeset
13 endpointInterface="info.textgrid.namespaces.middleware.digilib.services.digilibservice.DigilibService")
6a163b1bcd4d first checkin
casties
parents:
diff changeset
14 public class rest implements DigilibService {
6a163b1bcd4d first checkin
casties
parents:
diff changeset
15
6a163b1bcd4d first checkin
casties
parents:
diff changeset
16
6a163b1bcd4d first checkin
casties
parents:
diff changeset
17
6a163b1bcd4d first checkin
casties
parents:
diff changeset
18 @GET
6a163b1bcd4d first checkin
casties
parents:
diff changeset
19 @Path("/hello")
6a163b1bcd4d first checkin
casties
parents:
diff changeset
20 @Produces("text/plain")
6a163b1bcd4d first checkin
casties
parents:
diff changeset
21 public String getVersion() {
6a163b1bcd4d first checkin
casties
parents:
diff changeset
22 return "hello";
6a163b1bcd4d first checkin
casties
parents:
diff changeset
23 }
6a163b1bcd4d first checkin
casties
parents:
diff changeset
24
6a163b1bcd4d first checkin
casties
parents:
diff changeset
25 @Override
6a163b1bcd4d first checkin
casties
parents:
diff changeset
26 public void getScaledImage(String sessionId, String uri,
6a163b1bcd4d first checkin
casties
parents:
diff changeset
27 String logParameter, Holder<String> mimeType,
6a163b1bcd4d first checkin
casties
parents:
diff changeset
28 Holder<byte[]> imageData) {
1
8f5216c9d623 soap test access works
casties
parents: 0
diff changeset
29 System.out.println("getscaledimage! sid="+sessionId+" uri="+uri+" log="+logParameter);
0
6a163b1bcd4d first checkin
casties
parents:
diff changeset
30 }
6a163b1bcd4d first checkin
casties
parents:
diff changeset
31
6a163b1bcd4d first checkin
casties
parents:
diff changeset
32 }