cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1214335 - /cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapTransportFactory.java
Date Wed, 14 Dec 2011 16:58:03 GMT
Author: dkulp
Date: Wed Dec 14 16:58:03 2011
New Revision: 1214335

URL: http://svn.apache.org/viewvc?rev=1214335&view=rev
Log:
[CXF-3976] Use the EPR passed into SoapTransportFactory whenever
possible.
Patch from Andrei Shakirin applied

Modified:
    cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapTransportFactory.java

Modified: cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapTransportFactory.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapTransportFactory.java?rev=1214335&r1=1214334&r2=1214335&view=diff
==============================================================================
--- cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapTransportFactory.java
(original)
+++ cxf/trunk/rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/SoapTransportFactory.java
Wed Dec 14 16:58:03 2011
@@ -200,11 +200,7 @@ public class SoapTransportFactory extend
 
 
     public Conduit getConduit(EndpointInfo ei, EndpointReferenceType target) throws IOException
{
-        return getConduit(ei);
-    }
-
-    public Conduit getConduit(EndpointInfo ei) throws IOException {
-        String address = ei.getAddress();
+        String address = target.getAddress().getValue();
         if (!StringUtils.isEmpty(address) && address.startsWith("soap.tcp://")) {
             //TODO - examine policies and stuff to look for the sun tcp policies
             return new TCPConduit(ei);
@@ -229,13 +225,17 @@ public class SoapTransportFactory extend
                 throw new RuntimeException("Could not find conduit initiator for transport
"
                         + transId);
             }
-            return conduitInit.getConduit(ei);
+            return conduitInit.getConduit(ei, target);
         } catch (BusException e) {
             throw new RuntimeException("Could not find conduit initiator for transport "
                                        + transId);
         }
     }
 
+    public Conduit getConduit(EndpointInfo ei) throws IOException {
+        return getConduit(ei, ei.getTarget());
+    }
+
     @Resource(name = "cxf")
     public void setBus(Bus bus) {
         super.setBus(bus);



Mime
View raw message