View Javadoc
1   /**
2    * Copyright 2005-2013 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 javax.annotation.Resource;
19  import javax.jws.WebService;
20  import javax.ws.rs.core.Context;
21  import javax.ws.rs.core.HttpHeaders;
22  import javax.xml.ws.WebServiceContext;
23  import javax.xml.ws.handler.MessageContext;
24  
25  import org.apache.cxf.message.Message;
26  import org.apache.cxf.phase.PhaseInterceptorChain;
27  import org.kuali.rice.ksb.messaging.remotedservices.JaxWsEchoService;
28  import org.kuali.rice.ksb.messaging.remotedservices.ServiceCallInformationHolder;
29  
30  import java.util.List;
31  import java.util.Map;
32  
33  /**
34   * This is the JaxWsEchoService implementation 
35   * 
36   * @author Kuali Rice Team (rice.collab@kuali.org)
37   *
38   */
39  @WebService(endpointInterface="org.kuali.rice.ksb.messaging.remotedservices.JaxWsEchoService",
40  		serviceName="jaxwsEchoService",
41  		portName="jaxWsEchoService",
42  		targetNamespace="http://rice.kuali.org/")
43  public class JaxWsEchoServiceImpl implements JaxWsEchoService {
44      @Resource WebServiceContext requestContext;
45  
46  	/**
47  	 * This overridden method ...
48  	 * 
49  	 * @see org.kuali.rice.ksb.messaging.remotedservices.JaxWsEchoService#doEcho(java.lang.String)
50  	 */
51  	public String doEcho(String inMsg) {
52  		// TODO Will Gomes - THIS METHOD NEEDS JAVADOCS
53  		return inMsg;
54  	}
55  
56  
57      public void captureHeaders() {
58          MessageContext mc = (MessageContext) requestContext.getMessageContext();
59          ServiceCallInformationHolder.stuff.put("capturedHeaders", mc.get(MessageContext.HTTP_REQUEST_HEADERS));
60      }
61  }