jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1221212 - in /jmeter/trunk: src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler2.java xdocs/changes.xml
Date Tue, 20 Dec 2011 11:54:30 GMT
Author: sebb
Date: Tue Dec 20 11:54:29 2011
New Revision: 1221212

URL: http://svn.apache.org/viewvc?rev=1221212&view=rev
Log:
Bug 52371 - API Incompatibility - Methods in HTTPSampler2 now require PostMethod instead of
HttpMethod[Base]. Reverted to original types.

Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler2.java
    jmeter/trunk/xdocs/changes.xml

Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler2.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler2.java?rev=1221212&r1=1221211&r2=1221212&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler2.java
(original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler2.java
Tue Dec 20 11:54:29 2011
@@ -21,7 +21,8 @@ import java.io.IOException;
 import java.net.URL;
 
 import org.apache.commons.httpclient.HttpClient;
-import org.apache.commons.httpclient.methods.PostMethod;
+import org.apache.commons.httpclient.HttpMethod;
+import org.apache.commons.httpclient.HttpMethodBase;
 import org.apache.jmeter.protocol.http.control.CookieManager;
 import org.apache.jmeter.samplers.Interruptible;
 
@@ -52,21 +53,21 @@ public class HTTPSampler2 extends HTTPSa
     }
 
     // Methods needed by subclasses to get access to the implementation
-    protected HttpClient setupConnection(URL url, PostMethod httpMethod, HTTPSampleResult
res) 
+    protected HttpClient setupConnection(URL url, HttpMethodBase httpMethod, HTTPSampleResult
res) 
         throws IOException {
         return hc.setupConnection(url, httpMethod, res);
     }
 
-    protected void saveConnectionCookies(PostMethod httpMethod, URL url,
+    protected void saveConnectionCookies(HttpMethod httpMethod, URL url,
             CookieManager cookieManager) {
         hc.saveConnectionCookies(httpMethod, url, cookieManager);
    }
 
-    protected String getResponseHeaders(PostMethod httpMethod) {
+    protected String getResponseHeaders(HttpMethod httpMethod) {
         return hc.getResponseHeaders(httpMethod);
     }
 
-    protected String getConnectionHeaders(PostMethod httpMethod) {
+    protected String getConnectionHeaders(HttpMethod httpMethod) {
         return hc.getConnectionHeaders(httpMethod);
     }
 

Modified: jmeter/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/jmeter/trunk/xdocs/changes.xml?rev=1221212&r1=1221211&r2=1221212&view=diff
==============================================================================
--- jmeter/trunk/xdocs/changes.xml (original)
+++ jmeter/trunk/xdocs/changes.xml Tue Dec 20 11:54:29 2011
@@ -98,6 +98,7 @@ This behaviour can be changed with prope
 <li>Bug 52137 - Problems with HTTP Cache Manager</li>
 <li>Bug 52221 - Nullpointer Exception with use Retrieve Embedded Resource without HTTP
Cache Manager</li>
 <li>Bug 52310 - variable in IPSource failed HTTP request if "Concurrent Pool Size"
is enabled</li>
+<li>Bug 52371 - API Incompatibility - Methods in HTTPSampler2 now require PostMethod
instead of HttpMethod[Base]. Reverted to original types.</li>
 </ul>
 
 <h3>Other Samplers</h3>



Mime
View raw message