View Javadoc
1   /**
2    * Copyright 2005-2014 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.rice.ksb.testclient1;
17  
18  import org.apache.cxf.message.Message;
19  import org.apache.cxf.phase.PhaseInterceptorChain;
20  import org.kuali.rice.ksb.messaging.remotedservices.JaxWsEchoService;
21  import org.kuali.rice.ksb.messaging.remotedservices.ServiceCallInformationHolder;
22  
23  import javax.annotation.Resource;
24  import javax.jws.WebService;
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  /**
31   * This is the JaxWsEchoService implementation 
32   * 
33   * @author Kuali Rice Team (rice.collab@kuali.org)
34   *
35   */
36  @WebService(endpointInterface="org.kuali.rice.ksb.messaging.remotedservices.JaxWsEchoService",
37  		serviceName="jaxwsEchoService",
38  		portName="jaxWsEchoService",
39  		targetNamespace="http://rice.kuali.org/")
40  public class JaxWsEchoServiceImpl implements JaxWsEchoService {
41      @Resource WebServiceContext requestContext;
42  
43  	/**
44  	 * This overridden method ...
45  	 * 
46  	 * @see org.kuali.rice.ksb.messaging.remotedservices.JaxWsEchoService#doEcho(java.lang.String)
47  	 */
48  	public String doEcho(String inMsg) {
49  		// TODO Will Gomes - THIS METHOD NEEDS JAVADOCS
50  		return inMsg;
51  	}
52  
53  
54      public void captureHeaders() {
55          MessageContext mc = requestContext.getMessageContext();
56          ServiceCallInformationHolder.multiValues = (Map<String, List<String>>) PhaseInterceptorChain.getCurrentMessage().get(
57                  Message.PROTOCOL_HEADERS);
58      }
59  }