You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jakarta.apache.org by se...@apache.org on 2010/04/25 02:24:13 UTC
svn commit: r937726 -
/jakarta/jmeter/trunk/src/core/org/apache/jmeter/ProxyAuthenticator.java
Author: sebb
Date: Sun Apr 25 00:24:13 2010
New Revision: 937726
URL: http://svn.apache.org/viewvc?rev=937726&view=rev
Log:
Should only be applied to PROXY request types
Modified:
jakarta/jmeter/trunk/src/core/org/apache/jmeter/ProxyAuthenticator.java
Modified: jakarta/jmeter/trunk/src/core/org/apache/jmeter/ProxyAuthenticator.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jmeter/ProxyAuthenticator.java?rev=937726&r1=937725&r2=937726&view=diff
==============================================================================
--- jakarta/jmeter/trunk/src/core/org/apache/jmeter/ProxyAuthenticator.java (original)
+++ jakarta/jmeter/trunk/src/core/org/apache/jmeter/ProxyAuthenticator.java Sun Apr 25 00:24:13 2010
@@ -50,12 +50,21 @@ public class ProxyAuthenticator extends
/**
* Return a PasswordAuthentication instance using the userName and password
* specified in the constructor.
+ * Only applies to PROXY request types.
*
* @return a PasswordAuthentication instance to use for authenticating with
* the proxy
*/
@Override
protected PasswordAuthentication getPasswordAuthentication() {
- return new PasswordAuthentication(userName, password);
+ switch (getRequestorType()){
+ case PROXY:
+ return new PasswordAuthentication(userName, password);
+ case SERVER:
+ break;
+ default:
+ break;
+ }
+ return null;
}
}