You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jakarta.apache.org by mi...@apache.org on 2011/04/20 22:32:03 UTC

svn commit: r1095505 - in /jakarta/jmeter/trunk: src/protocol/http/org/apache/jmeter/protocol/http/config/gui/UrlConfigGui.java xdocs/changes.xml

Author: milamber
Date: Wed Apr 20 20:32:02 2011
New Revision: 1095505

URL: http://svn.apache.org/viewvc?rev=1095505&view=rev
Log:
Hiding the proxy password on HTTP Sampler (just on GUI, not in JMX file)

Modified:
    jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/config/gui/UrlConfigGui.java
    jakarta/jmeter/trunk/xdocs/changes.xml

Modified: jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/config/gui/UrlConfigGui.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/config/gui/UrlConfigGui.java?rev=1095505&r1=1095504&r2=1095505&view=diff
==============================================================================
--- jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/config/gui/UrlConfigGui.java (original)
+++ jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/config/gui/UrlConfigGui.java Wed Apr 20 20:32:02 2011
@@ -28,6 +28,7 @@ import javax.swing.BoxLayout;
 import javax.swing.JCheckBox;
 import javax.swing.JLabel;
 import javax.swing.JPanel;
+import javax.swing.JPasswordField;
 import javax.swing.JTextField;
 import javax.swing.event.ChangeEvent;
 import javax.swing.event.ChangeListener;
@@ -69,7 +70,7 @@ public class UrlConfigGui extends JPanel
 
     private JTextField proxyUser;
 
-    private JTextField proxyPass;
+    private JPasswordField proxyPass;
 
     private JTextField connectTimeOut;
 
@@ -165,7 +166,7 @@ public class UrlConfigGui extends JPanel
         element.setProperty(HTTPSamplerBase.PROXYHOST, proxyHost.getText(),"");
         element.setProperty(HTTPSamplerBase.PROXYPORT, proxyPort.getText(),"");
         element.setProperty(HTTPSamplerBase.PROXYUSER, proxyUser.getText(),"");
-        element.setProperty(HTTPSamplerBase.PROXYPASS, proxyPass.getText(),"");
+        element.setProperty(HTTPSamplerBase.PROXYPASS, String.valueOf(proxyPass.getPassword()),"");
         element.setProperty(HTTPSamplerBase.CONNECT_TIMEOUT, connectTimeOut.getText());
         element.setProperty(HTTPSamplerBase.RESPONSE_TIMEOUT, responseTimeOut.getText());
         element.setProperty(HTTPSamplerBase.PROTOCOL, protocol.getText());
@@ -392,7 +393,7 @@ public class UrlConfigGui extends JPanel
     }
 
     private JPanel getProxyPassPanel() {
-        proxyPass = new JTextField(5);
+        proxyPass = new JPasswordField(5);
 
         JLabel label = new JLabel(JMeterUtils.getResString("password")); // $NON-NLS-1$
         label.setLabelFor(proxyPass);

Modified: jakarta/jmeter/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/xdocs/changes.xml?rev=1095505&r1=1095504&r2=1095505&view=diff
==============================================================================
--- jakarta/jmeter/trunk/xdocs/changes.xml (original)
+++ jakarta/jmeter/trunk/xdocs/changes.xml Wed Apr 20 20:32:02 2011
@@ -152,6 +152,7 @@ Fixed RMI startup to provide location of
 <li>Bug 50684 - Optionally disable Content-Type and Transfer-Encoding in Multipart POST</li>
 <li>Bug 50943 - Allowing concurrent downloads of embedded resources in html page</li>
 <li>Bug 50170 - Bytes reported by http sampler is after GUnZip<br></br>Add optional properties to allow change the method to get response size</li>
+<li>Hiding the proxy password on HTTP Sampler (just on GUI, not in JMX file)</li>
 </ul>
 
 <h3>Other samplers</h3>



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