KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > hello_world_soap_http > NotAnnotatedGreeterImpl


1 package org.objectweb.hello_world_soap_http;
2
3 import java.util.concurrent.Future JavaDoc;
4 import java.util.logging.Logger JavaDoc;
5
6 import javax.xml.ws.AsyncHandler;
7 import javax.xml.ws.Response;
8
9 import org.objectweb.hello_world_soap_http.types.BareDocumentResponse;
10 import org.objectweb.hello_world_soap_http.types.ErrorCode;
11 import org.objectweb.hello_world_soap_http.types.GreetMeResponse;
12 import org.objectweb.hello_world_soap_http.types.GreetMeSometimeResponse;
13 import org.objectweb.hello_world_soap_http.types.NoSuchCodeLit;
14 import org.objectweb.hello_world_soap_http.types.SayHiResponse;
15 import org.objectweb.hello_world_soap_http.types.TestDocLitFaultResponse;
16
17
18
19                 
20 public class NotAnnotatedGreeterImpl implements Greeter {
21
22     private static final Logger JavaDoc LOG =
23         Logger.getLogger(NotAnnotatedGreeterImpl.class.getName());
24     
25     public String JavaDoc greetMe(String JavaDoc me) {
26         LOG.info("Executing operation greetMe");
27         return me;
28     }
29     
30     public String JavaDoc greetMeSometime(String JavaDoc me) {
31         LOG.info("Executing operation greetMeSometime");
32         return me;
33     }
34     
35     public Future JavaDoc<?> greetMeSometimeAsync(String JavaDoc requestType,
36                                            AsyncHandler<GreetMeSometimeResponse> asyncHandler) {
37         return null;
38         /* to be implemented */
39     }
40     
41     public Response<GreetMeSometimeResponse> greetMeSometimeAsync(String JavaDoc requestType) {
42         return null;
43         /* to be implemented" */
44     }
45     
46     public Future JavaDoc<?> greetMeAsync(String JavaDoc requestType, AsyncHandler<GreetMeResponse> asyncHandler) {
47         return null;
48         /*not called */
49     }
50     
51     public Response<GreetMeResponse> greetMeAsync(String JavaDoc requestType) {
52         return null;
53         /*not called */
54     }
55     
56     public Future JavaDoc<?> sayHiAsync(AsyncHandler<SayHiResponse> asyncHandler) {
57         return null;
58         /*not called */
59     }
60     
61     public Response<SayHiResponse> sayHiAsync() {
62         return null;
63         /*not called */
64     }
65   
66     public String JavaDoc sayHi() {
67         LOG.info("Executing operation sayHi");
68         return "Bonjour";
69     }
70     
71     public void greetMeOneWay(String JavaDoc me) {
72         LOG.info("Executing operation greetMeOneWay");
73     }
74     
75     public Response<TestDocLitFaultResponse> testDocLitFaultAsync(String JavaDoc faultType) {
76         return null;
77         /*not called */
78     }
79     
80     public Future JavaDoc<?> testDocLitFaultAsync(String JavaDoc faultType, AsyncHandler ah) {
81         return null;
82         /*not called */
83     }
84     
85     public Future JavaDoc<?> testDocLitBareAsync(String JavaDoc bare, AsyncHandler ah) {
86         return null;
87         /* not called */
88     }
89     
90     public Response<BareDocumentResponse> testDocLitBareAsync(String JavaDoc bare) {
91         return null;
92         /* not called */
93     }
94     
95
96     public void testDocLitFault(String JavaDoc faultType) throws BadRecordLitFault, NoSuchCodeLitFault {
97         ErrorCode ec = new ErrorCode();
98         ec.setMajor((short)1);
99         ec.setMinor((short)1);
100         NoSuchCodeLit nscl = new NoSuchCodeLit();
101         nscl.setCode(ec);
102         
103         throw new NoSuchCodeLitFault("TestException", nscl);
104     }
105     
106     public BareDocumentResponse testDocLitBare(String JavaDoc in) {
107         LOG.info("Executin operation testDocLitBare");
108         BareDocumentResponse res = new BareDocumentResponse();
109         res.setCompany("Celtix");
110         res.setId(1);
111         return res;
112     }
113 }
114
Popular Tags