1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.ksb.testclient2;
17
18 import org.apache.cxf.message.Message;
19 import org.apache.cxf.phase.PhaseInterceptorChain;
20 import org.kuali.rice.ksb.messaging.remotedservices.EchoService;
21 import org.kuali.rice.ksb.messaging.remotedservices.ServiceCallInformationHolder;
22
23 import javax.annotation.Resource;
24 import javax.ws.rs.core.HttpHeaders;
25 import javax.xml.ws.WebServiceContext;
26 import javax.xml.ws.handler.MessageContext;
27 import java.util.List;
28 import java.util.Map;
29
30 public class EchoService2Impl implements EchoService {
31 public String echo(String string) {
32 return string;
33 }
34
35 public String trueEcho(String string) {
36 return string;
37 }
38
39 public void captureHeaders() {
40 ServiceCallInformationHolder.stuff.put("capturedHeaders", PhaseInterceptorChain.getCurrentMessage().get(Message.PROTOCOL_HEADERS));
41 }
42
43 }