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/05/17 20:38:42 UTC
svn commit: r407350 -
/jakarta/jmeter/branches/rel-2-1/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
Author: sebb
Date: Wed May 17 11:38:42 2006
New Revision: 407350
URL: http://svn.apache.org/viewvc?rev=407350&view=rev
Log:
Add new get/set methods; change order of HTTP 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=407350&r1=407349&r2=407350&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 Wed May 17 11:38:42 2006
@@ -78,6 +78,8 @@
public final static String METHOD = "HTTPSampler.method"; // $NON-NLS-1$
+ public final static String IMPLEMENTATION = "HTTPSampler.implementation"; // $NON-NLS-1$
+
public final static String PATH = "HTTPSampler.path"; // $NON-NLS-1$
public final static String FOLLOW_REDIRECTS = "HTTPSampler.follow_redirects"; // $NON-NLS-1$
@@ -109,9 +111,9 @@
public final static String DEFAULT_METHOD = "GET"; // $NON-NLS-1$
// Supported methods:
private final static String [] METHODS = {
- DEFAULT_METHOD,
- HEAD,
+ DEFAULT_METHOD, // i.e. GET
POST,
+ HEAD,
PUT,
OPTIONS,
TRACE,
@@ -260,6 +262,14 @@
return getPropertyAsBoolean(FOLLOW_REDIRECTS);
}
+ public void setAutoRedirects(boolean value) {
+ setProperty(new BooleanProperty(AUTO_REDIRECTS, value));
+ }
+
+ public boolean getAutoRedirects() {
+ return getPropertyAsBoolean(AUTO_REDIRECTS);
+ }
+
public void setMethod(String value) {
setProperty(METHOD, value);
}
@@ -280,6 +290,10 @@
this.setProperty(MONITOR, value);
}
+ public void setMonitor(boolean truth) {
+ this.setProperty(MONITOR, JOrphanUtils.booleanToString(truth));
+ }
+
public String getMonitor() {
return this.getPropertyAsString(MONITOR);
}
@@ -287,6 +301,14 @@
public boolean isMonitor() {
return this.getPropertyAsBoolean(MONITOR);
}
+
+ public void setImplementation(String value) {
+ this.setProperty(IMPLEMENTATION, value);
+ }
+
+ public String getImplementation() {
+ return this.getPropertyAsString(IMPLEMENTATION);
+ }
/**
* Add an argument which has already been encoded
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org