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/06/02 03:59:33 UTC
svn commit: r411015 -
/jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
Author: sebb
Date: Thu Jun 1 18:59:33 2006
New Revision: 411015
URL: http://svn.apache.org/viewvc?rev=411015&view=rev
Log:
Add isSecure() utility methods
Modified:
jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
Modified: jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
URL: http://svn.apache.org/viewvc/jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java?rev=411015&r1=411014&r2=411015&view=diff
==============================================================================
--- jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java (original)
+++ jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java Thu Jun 1 18:59:33 2006
@@ -919,4 +919,13 @@
public static String[] getValidMethodsAsArray(){
return (String[]) METHODLIST.toArray(new String[0]);
}
+
+ public static boolean isSecure(String protocol){
+ return PROTOCOL_HTTPS.equalsIgnoreCase(protocol);
+ }
+
+ public static boolean isSecure(URL url){
+ return isSecure(url.getProtocol());
+ }
}
+
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org