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:17:40 UTC
svn commit: r398133 - in
/jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/control/gui:
HttpTestSampleGui.java HttpTestSampleGui2.java
Author: sebb
Date: Sat Apr 29 05:17:39 2006
New Revision: 398133
URL: http://svn.apache.org/viewcvs?rev=398133&view=rev
Log:
Use HTTPSamplerFactory class aliases
Modified:
jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/HttpTestSampleGui.java
jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/HttpTestSampleGui2.java
Modified: jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/HttpTestSampleGui.java
URL: http://svn.apache.org/viewcvs/jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/HttpTestSampleGui.java?rev=398133&r1=398132&r2=398133&view=diff
==============================================================================
--- jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/HttpTestSampleGui.java (original)
+++ jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/HttpTestSampleGui.java Sat Apr 29 05:17:39 2006
@@ -1,5 +1,5 @@
/*
- * Copyright 2001-2005 The Apache Software Foundation.
+ * Copyright 2001-20056 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -36,9 +36,8 @@
//For unit tests, @see TestHttpTestSampleGui
/**
- * The GUI for HttpSampler
+ * HTTP Sampler GUI
*
- * @version $Revision$ on $Date$
*/
public class HttpTestSampleGui extends AbstractSamplerGui {
private UrlConfigGui urlConfigGui;
@@ -59,7 +58,7 @@
}
public TestElement createTestElement() {
- HTTPSamplerBase sampler = HTTPSamplerFactory.newInstance("HTTPSampler");
+ HTTPSamplerBase sampler = HTTPSamplerFactory.newInstance(HTTPSamplerFactory.HTTP_SAMPLER_JAVA);
modifyTestElement(sampler);
return sampler;
}
Modified: jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/HttpTestSampleGui2.java
URL: http://svn.apache.org/viewcvs/jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/HttpTestSampleGui2.java?rev=398133&r1=398132&r2=398133&view=diff
==============================================================================
--- jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/HttpTestSampleGui2.java (original)
+++ jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/control/gui/HttpTestSampleGui2.java Sat Apr 29 05:17:39 2006
@@ -1,6 +1,5 @@
-// $Header$
/*
- * Copyright 2001-2005 The Apache Software Foundation.
+ * Copyright 2004-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -23,7 +22,7 @@
import org.apache.jmeter.testelement.TestElement;
/**
- * @version $Revision$ on $Date$
+ * HTTP Sampler GUI for Apache HTTPClient HTTP implementation
*/
public class HttpTestSampleGui2 extends HttpTestSampleGui {
@@ -32,17 +31,17 @@
}
public TestElement createTestElement() {
- HTTPSamplerBase sampler = HTTPSamplerFactory.newInstance("HTTPSampler2");
+ HTTPSamplerBase sampler = HTTPSamplerFactory.newInstance(HTTPSamplerFactory.HTTP_SAMPLER_APACHE);
modifyTestElement(sampler);
return sampler;
}
public String getStaticLabel() {
- return super.getStaticLabel() + " HTTPClient";
+ return super.getStaticLabel() + " HTTPClient"; // $NON-NLS-1$
}
public String getDocAnchor() {
- return super.getStaticLabel().replace(' ', '_');
+ return super.getStaticLabel().replace(' ', '_'); // $NON-NLS-1$ // $NON-NLS-2$
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org