You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2006/04/29 14:24:54 UTC

svn commit: r398136 - /jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/parser/HtmlParsingUtils.java

Author: sebb
Date: Sat Apr 29 05:24:53 2006
New Revision: 398136

URL: http://svn.apache.org/viewcvs?rev=398136&view=rev
Log:
Use HTTPSamplerFactory to create the sampler

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

Modified: jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/parser/HtmlParsingUtils.java
URL: http://svn.apache.org/viewcvs/jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/parser/HtmlParsingUtils.java?rev=398136&r1=398135&r2=398136&view=diff
==============================================================================
--- jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/parser/HtmlParsingUtils.java (original)
+++ jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/parser/HtmlParsingUtils.java Sat Apr 29 05:24:53 2006
@@ -27,6 +27,7 @@
 import org.apache.jmeter.config.Argument;
 import org.apache.jmeter.protocol.http.sampler.HTTPSampler;
 import org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase;
+import org.apache.jmeter.protocol.http.sampler.HTTPSamplerFactory;
 import org.apache.jmeter.testelement.property.PropertyIterator;
 import org.apache.jorphan.logging.LoggingManager;
 import org.apache.jorphan.util.JOrphanUtils;
@@ -194,8 +195,7 @@
 			log.debug("Creating URL from Anchor: " + parsedUrlString + ", base: " + context);
 		}
 		URL url = new URL(context, parsedUrlString);
-		HTTPSamplerBase sampler = new HTTPSampler();// TODO create appropriate
-													// sampler
+		HTTPSamplerBase sampler =HTTPSamplerFactory.newInstance();
 		sampler.setDomain(url.getHost());
 		sampler.setProtocol(url.getProtocol());
 		sampler.setPort(url.getPort());



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