axis-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sag...@apache.org
Subject svn commit: r1377239 - in /axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http: CommonsHTTPTransportSender.java impl/httpclient3/HTTPClient3TransportSender.java impl/httpclient4/HTTPClient4TransportSender.java
Date Sat, 25 Aug 2012 08:53:21 GMT
Author: sagara
Date: Sat Aug 25 08:53:21 2012
New Revision: 1377239

URL: http://svn.apache.org/viewvc?rev=1377239&view=rev
Log:
Applied patch for AXIS2-5390.

Modified:
    axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java
    axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/impl/httpclient3/HTTPClient3TransportSender.java
    axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/impl/httpclient4/HTTPClient4TransportSender.java

Modified: axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java
URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java?rev=1377239&r1=1377238&r2=1377239&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java
(original)
+++ axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/CommonsHTTPTransportSender.java
Sat Aug 25 08:53:21 2012
@@ -376,9 +376,7 @@ public class CommonsHTTPTransportSender 
             URL url = new URL(toEPR.getAddress());
 
             // select the Message Sender depending on the REST status
-            AbstractHTTPSender sender;
-
-            sender = new HTTPSenderImpl();
+            AbstractHTTPSender sender = createHTTPSender();
 
             boolean chunked;
             if (messageContext.getProperty(HTTPConstants.CHUNKED) != null) {
@@ -411,6 +409,10 @@ public class CommonsHTTPTransportSender 
         }
     }
 
+    protected AbstractHTTPSender createHTTPSender() {
+        return new HTTPSenderImpl();
+    }
+
     /**
      * @param actionString
      * @return true if the specified String represents a generated (anonymous name)

Modified: axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/impl/httpclient3/HTTPClient3TransportSender.java
URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/impl/httpclient3/HTTPClient3TransportSender.java?rev=1377239&r1=1377238&r2=1377239&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/impl/httpclient3/HTTPClient3TransportSender.java
(original)
+++ axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/impl/httpclient3/HTTPClient3TransportSender.java
Sat Aug 25 08:53:21 2012
@@ -22,6 +22,7 @@ package org.apache.axis2.transport.http.
 import org.apache.axis2.AxisFault;
 import org.apache.axis2.context.ConfigurationContext;
 import org.apache.axis2.context.MessageContext;
+import org.apache.axis2.transport.http.AbstractHTTPSender;
 import org.apache.axis2.transport.http.CommonsHTTPTransportSender;
 import org.apache.axis2.transport.http.HTTPTransportConstants;
 import org.apache.axis2.transport.http.HTTPTransportSender;
@@ -43,4 +44,9 @@ public class HTTPClient3TransportSender 
         super.cleanup(msgContext);
     }
 
+    @Override
+    protected AbstractHTTPSender createHTTPSender() {
+        return new HTTPSenderImpl();
+    }
+
 }

Modified: axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/impl/httpclient4/HTTPClient4TransportSender.java
URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/impl/httpclient4/HTTPClient4TransportSender.java?rev=1377239&r1=1377238&r2=1377239&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/impl/httpclient4/HTTPClient4TransportSender.java
(original)
+++ axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/impl/httpclient4/HTTPClient4TransportSender.java
Sat Aug 25 08:53:21 2012
@@ -22,6 +22,7 @@ package org.apache.axis2.transport.http.
 import org.apache.axis2.AxisFault;
 import org.apache.axis2.context.ConfigurationContext;
 import org.apache.axis2.context.MessageContext;
+import org.apache.axis2.transport.http.AbstractHTTPSender;
 import org.apache.axis2.transport.http.CommonsHTTPTransportSender;
 import org.apache.axis2.transport.http.HTTPConstants;
 import org.apache.axis2.transport.http.HTTPTransportConstants;
@@ -54,4 +55,9 @@ public class HTTPClient4TransportSender 
     }
 
 
+    @Override
+    protected AbstractHTTPSender createHTTPSender() {
+        return new HTTPSenderImpl();
+    }
+
 }



Mime
View raw message