jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1511150 - /jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/ConversionUtils.java
Date Tue, 06 Aug 2013 23:41:57 GMT
Author: sebb
Date: Tue Aug  6 23:41:56 2013
New Revision: 1511150

URL: http://svn.apache.org/r1511150
Log:
Javadoc

Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/ConversionUtils.java

Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/ConversionUtils.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/ConversionUtils.java?rev=1511150&r1=1511149&r2=1511150&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/ConversionUtils.java
(original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/ConversionUtils.java
Tue Aug  6 23:41:56 2013
@@ -116,9 +116,12 @@ public class ConversionUtils {
     
 
     /**
-     * Escapes reserved chars in URL
-     * @param url URL
-     * @return URI
+     * Escapes reserved chars in a non-encoded URL.
+     * Warning: if the input URL has already been (partially) encoded, 
+     * the resulting URI will almost certainly be incorrect
+     * as the encoding character '%' will itself be re-encoded.
+     * @param url non-encoded URL
+     * @return URI which has been encoded as necessary
      * @throws URISyntaxException
      */
     public static final URI sanitizeUrl(URL url) throws URISyntaxException {



Mime
View raw message