jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1294642 - /jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHCAbstractImpl.java
Date Tue, 28 Feb 2012 13:37:12 GMT
Author: pmouawad
Date: Tue Feb 28 13:37:11 2012
New Revision: 1294642

URL: http://svn.apache.org/viewvc?rev=1294642&view=rev
Log:
Add method to check null or empty on trimmed string

Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHCAbstractImpl.java

Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHCAbstractImpl.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHCAbstractImpl.java?rev=1294642&r1=1294641&r2=1294642&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHCAbstractImpl.java
(original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHCAbstractImpl.java
Tue Feb 28 13:37:11 2012
@@ -152,4 +152,12 @@ public abstract class HTTPHCAbstractImpl
     protected static boolean isStaticProxy(String host){
         return PROXY_DEFINED && !isNonProxy(host);
     }
+    
+    /**
+     * @param value String value to test
+     * @return true if value is null or empty trimmed
+     */
+    protected static boolean isNullOrEmptyTrimmed(String value) {
+        return value == null || value.trim().length() == 0;
+    }
 }



Mime
View raw message