Author: sebb
Date: Tue Sep 27 21:00:39 2011
New Revision: 1176617
URL: http://svn.apache.org/viewvc?rev=1176617&view=rev
Log:
Javadoc
Modified:
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPArgument.java
Modified:
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
URL:
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java?rev=1176617&r1=1176616&r2=1176617&view=diff
==============================================================================
---
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
(original)
+++
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
Tue Sep 27 21:00:39 2011
@@ -367,8 +367,8 @@ public abstract class HTTPSamplerBase ex
}
/**
- * Sets the Path attribute of the UrlConfig object Also calls
parseArguments
- * to extract and store any query arguments
+ * Sets the PATH property; also calls {@link #parseArguments(String,
String)}
+ * to extract and store any query arguments if the request is a GET or
DELETE.
*
* @param path
* The new Path value
@@ -493,6 +493,14 @@ public abstract class HTTPSamplerBase ex
this.addEncodedArgument(name, value, ARG_VAL_SEP);
}
+ /**
+ * Creates an HTTPArgument and adds it to the current set {@link
#getArguments()} of arguments.
+ *
+ * @param name - the parameter name
+ * @param value - the parameter value
+ * @param metaData - normally just '='
+ * @param contentEncoding - the encoding, may be null
+ */
public void addEncodedArgument(String name, String value, String metaData,
String contentEncoding) {
if (log.isDebugEnabled()){
log.debug("adding argument: name: " + name + " value: " + value +
" metaData: " + metaData + " contentEncoding: " + contentEncoding);
@@ -920,10 +928,10 @@ public abstract class HTTPSamplerBase ex
* For each name found, addArgument() is called
*
* @param queryString -
- * the query string
+ * the query string, might be the post body of a http post
request.
* @param contentEncoding -
- * the content encoding of the query string. The query string
might
- * actually be the post body of a http post request.
+ * the content encoding of the query string;
+ * if non-null then it is used to decode the
*/
public void parseArguments(String queryString, String contentEncoding) {
String[] args = JOrphanUtils.split(queryString, QRY_SEP);
Modified:
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPArgument.java
URL:
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPArgument.java?rev=1176617&r1=1176616&r2=1176617&view=diff
==============================================================================
---
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPArgument.java
(original)
+++
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPArgument.java
Tue Sep 27 21:00:39 2011
@@ -96,11 +96,11 @@ public class HTTPArgument extends Argume
}
/**
- * Construct a new HTTPArgument instance
+ * Construct a new HTTPArgument instance; alwaysEncoded is set to true.
*
* @param name the name of the parameter
* @param value the value of the parameter
- * @param alreadyEncoded true if the name and value is already encoded
+ * @param alreadyEncoded true if the name and value is already encoded, in
which case they are decoded before storage.
* @param contentEncoding the encoding used for the parameter value
*/
public HTTPArgument(String name, String value, boolean alreadyEncoded,
String contentEncoding) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]