You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jakarta.apache.org by se...@apache.org on 2010/11/24 20:23:26 UTC

svn commit: r1038771 - in /jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler: PostWriter.java PutWriter.java

Author: sebb
Date: Wed Nov 24 19:23:26 2010
New Revision: 1038771

URL: http://svn.apache.org/viewvc?rev=1038771&view=rev
Log:
Use generic parent class (necessary to allow choosing HTTP implementation at run-time)

Modified:
    jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/PostWriter.java
    jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/PutWriter.java

Modified: jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/PostWriter.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/PostWriter.java?rev=1038771&r1=1038770&r2=1038771&view=diff
==============================================================================
--- jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/PostWriter.java (original)
+++ jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/PostWriter.java Wed Nov 24 19:23:26 2010
@@ -80,7 +80,7 @@ public class PostWriter {
      * @return the post body sent. Actual file content is not returned, it
      * is just shown as a placeholder text "actual file content"
      */
-    public String sendPostData(URLConnection connection, HTTPSampler sampler) throws IOException {
+    public String sendPostData(URLConnection connection, HTTPSamplerBase sampler) throws IOException {
         // Buffer to hold the post body, except file content
         StringBuilder postedBody = new StringBuilder(1000);
 
@@ -161,7 +161,7 @@ public class PostWriter {
         return postedBody.toString();
     }
 
-    public void setHeaders(URLConnection connection, HTTPSampler sampler) throws IOException {
+    public void setHeaders(URLConnection connection, HTTPSamplerBase sampler) throws IOException {
         // Get the encoding to use for the request
         String contentEncoding = sampler.getContentEncoding();
         if(contentEncoding == null || contentEncoding.length() == 0) {

Modified: jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/PutWriter.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/PutWriter.java?rev=1038771&r1=1038770&r2=1038771&view=diff
==============================================================================
--- jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/PutWriter.java (original)
+++ jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/PutWriter.java Wed Nov 24 19:23:26 2010
@@ -42,7 +42,7 @@ public class PutWriter extends PostWrite
     }
 
     @Override
-    public void setHeaders(URLConnection connection, HTTPSampler sampler) throws IOException {
+    public void setHeaders(URLConnection connection, HTTPSamplerBase sampler) throws IOException {
         // Get the encoding to use for the request
         String contentEncoding = sampler.getContentEncoding();
         if(contentEncoding == null || contentEncoding.length() == 0) {



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org