cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r437634 - in /incubator/cxf/trunk/testutils/src/main/java/org/apache/header_test: ./ TestHeaderImpl.java
Date Mon, 28 Aug 2006 10:41:21 GMT
Author: ffang
Date: Mon Aug 28 03:41:10 2006
New Revision: 437634

URL: http://svn.apache.org/viewvc?rev=437634&view=rev
Log:
add missing file for last commit

Added:
    incubator/cxf/trunk/testutils/src/main/java/org/apache/header_test/
    incubator/cxf/trunk/testutils/src/main/java/org/apache/header_test/TestHeaderImpl.java
  (with props)

Added: incubator/cxf/trunk/testutils/src/main/java/org/apache/header_test/TestHeaderImpl.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/testutils/src/main/java/org/apache/header_test/TestHeaderImpl.java?rev=437634&view=auto
==============================================================================
--- incubator/cxf/trunk/testutils/src/main/java/org/apache/header_test/TestHeaderImpl.java
(added)
+++ incubator/cxf/trunk/testutils/src/main/java/org/apache/header_test/TestHeaderImpl.java
Mon Aug 28 03:41:10 2006
@@ -0,0 +1,101 @@
+package org.apache.header_test;
+
+import javax.jws.WebService;
+import javax.xml.ws.Holder;
+
+import org.apache.header_test.types.TestHeader1;
+import org.apache.header_test.types.TestHeader1Response;
+import org.apache.header_test.types.TestHeader2;
+import org.apache.header_test.types.TestHeader2Response;
+import org.apache.header_test.types.TestHeader3;
+import org.apache.header_test.types.TestHeader3Response;
+import org.apache.header_test.types.TestHeader5;
+
+
+@WebService(serviceName = "SOAPHeaderService", 
+            portName = "SoapHeaderPort", 
+            endpointInterface = "org.apache.header_test.TestHeader",
+            targetNamespace = "http://apache.org/header_test")
+public class TestHeaderImpl implements TestHeader {
+
+    /**
+     * 
+     * @param inHeader
+     * @param in
+     * @return
+     *     returns org.objectweb.header_test.types.TestHeader1Response
+     */
+    public TestHeader1Response testHeader1(
+        TestHeader1 in,
+        TestHeader1 inHeader) {
+        if (in == null || inHeader == null) {
+            throw new IllegalArgumentException("TestHeader1 part not found.");
+        }
+        TestHeader1Response returnVal = new TestHeader1Response();
+        
+        returnVal.setResponseType(inHeader.getClass().getSimpleName());
+        return returnVal;        
+    }
+
+    /**
+     * 
+     * @param out
+     * @param outHeader
+     * @param in
+     */
+    public void testHeader2(
+        TestHeader2 in,
+        Holder<TestHeader2Response> out,
+        Holder<TestHeader2Response> outHeader) {
+        
+        TestHeader2Response outVal = new TestHeader2Response();
+        outVal.setResponseType(in.getRequestType());
+        out.value = outVal;
+        
+        TestHeader2Response outHeaderVal = new TestHeader2Response();
+        outHeaderVal.setResponseType(in.getRequestType());
+        outHeader.value = outHeaderVal;        
+    }
+
+    /**
+     * 
+     * @param inoutHeader
+     * @param in
+     * @return
+     *     returns org.objectweb.header_test.types.TestHeader3Response
+     */
+    public TestHeader3Response testHeader3(
+        TestHeader3 in,
+        Holder<TestHeader3> inoutHeader) {
+        
+        if (inoutHeader.value == null) {
+            throw new IllegalArgumentException("TestHeader3 part not found.");
+        }
+        TestHeader3Response returnVal = new TestHeader3Response();
+        returnVal.setResponseType(inoutHeader.value.getRequestType());
+        
+        inoutHeader.value.setRequestType(in.getRequestType());
+        return returnVal;
+    }
+
+    /**
+     * 
+     * @param requestType
+     */
+    public void testHeader4(
+        String requestType) {
+        
+    }
+
+    /**
+     * 
+     * @param in
+     * @return
+     *     returns org.objectweb.header_test.types.TestHeader5
+     */
+    public TestHeader5 testHeader5(
+        TestHeader5 in) {
+        return in;
+    }
+    
+}

Propchange: incubator/cxf/trunk/testutils/src/main/java/org/apache/header_test/TestHeaderImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/testutils/src/main/java/org/apache/header_test/TestHeaderImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date



Mime
View raw message