kcassell 2003/03/04 11:28:00
Modified: src/protocol/http/org/apache/jmeter/protocol/http/config/gui
UrlConfigGui.java
Log:
Changes so that a default port specified in the HTTPDefaults object
won't appear in an HTTPRequest generated by the HTTPRoxyServer.
Revision Changes Path
1.7 +15 -5
jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/config/gui/UrlConfigGui.java
Index: UrlConfigGui.java
===================================================================
RCS file:
/home/cvs/jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/config/gui/UrlConfigGui.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- UrlConfigGui.java 26 Feb 2003 21:46:55 -0000 1.6
+++ UrlConfigGui.java 4 Mar 2003 19:28:00 -0000 1.7
@@ -61,7 +61,6 @@
import javax.swing.BorderFactory;
import javax.swing.Box;
-import javax.swing.BoxLayout;
import javax.swing.ButtonGroup;
import javax.swing.JCheckBox;
import javax.swing.JLabel;
@@ -171,16 +170,27 @@
}
/****************************************
- * !ToDo (Method description)
+ * Set the text, etc. in the UI.
*
- [EMAIL PROTECTED] el !ToDo (Parameter description)
+ [EMAIL PROTECTED] el contains the data to be displayed
***************************************/
public void configure(TestElement el)
{
setName((String) el.getProperty(TestElement.NAME));
argsPanel.configure((TestElement) el.getProperty(HTTPSampler.ARGUMENTS));
domain.setText((String) el.getProperty(HTTPSampler.DOMAIN));
- port.setText((String) el.getPropertyAsString(HTTPSampler.PORT));
+
+ String portString = (String) el.getPropertyAsString(HTTPSampler.PORT);
+
+ // Only display the port number if it is meaningfully specified
+ if (portString.equals("" + HTTPSampler.UNSPECIFIED_PORT))
+ {
+ port.setText("");
+ }
+ else
+ {
+ port.setText(portString);
+ }
protocol.setText((String) el.getProperty(HTTPSampler.PROTOCOL));
if ("POST".equals(el.getProperty(HTTPSampler.METHOD)))
{
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]