Author: sebb
Date: Tue May  9 09:56:28 2006
New Revision: 405467

URL: http://svn.apache.org/viewcvs?rev=405467&view=rev
Log:
Remove unnecessary PostWriter instance

Modified:
    
jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler.java

Modified: 
jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler.java
URL: 
http://svn.apache.org/viewcvs/jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler.java?rev=405467&r1=405466&r2=405467&view=diff
==============================================================================
--- 
jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler.java
 (original)
+++ 
jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampler.java
 Tue May  9 09:56:28 2006
@@ -54,12 +54,7 @@
 public class HTTPSampler extends HTTPSamplerBase {
     private static final Logger log = LoggingManager.getLoggerForClass();
 
-       private static final int MAX_CONN_RETRIES = 10; // Maximum connection
-
-       // retries
-
-       // protected static String encoding= "iso-8859-1";
-       private static final PostWriter postWriter = new PostWriter();
+       private static final int MAX_CONN_RETRIES = 10; // Maximum connection 
retries
 
        static {// TODO - document what this is doing and why
                System.setProperty("java.protocol.handler.pkgs", // $NON-NLS-1$ 
@@ -85,11 +80,10 @@
         *                if an I/O exception occurs
         */
        protected void setPostHeaders(URLConnection conn) throws IOException {
-               postWriter.setHeaders(conn, this);
+               PostWriter.setHeaders(conn, this);
        }
 
     private void setPutHeaders(URLConnection conn)
-         throws IOException
      {
          String filename = getFilename();
          if ((filename != null) && (filename.trim().length() > 0))
@@ -109,7 +103,7 @@
         *                if an I/O exception occurs
         */
        protected void sendPostData(URLConnection connection) throws 
IOException {
-               postWriter.sendPostData(connection, this);
+               PostWriter.sendPostData(connection, this);
        }
 
     private void sendPutData(URLConnection conn) throws IOException {



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to