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 2007/10/31 15:05:26 UTC
svn commit: r590678 - in /jakarta/jmeter/trunk/src:
core/org/apache/jmeter/resources/messages.properties
protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
Author: sebb
Date: Wed Oct 31 07:05:23 2007
New Revision: 590678
URL: http://svn.apache.org/viewvc?rev=590678&view=rev
Log:
Prepare to add Client implementation to HTTP samplers
Modified:
jakarta/jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java
Modified: jakarta/jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties
URL: http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties?rev=590678&r1=590677&r2=590678&view=diff
==============================================================================
--- jakarta/jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties (original)
+++ jakarta/jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties Wed Oct 31 07:05:23 2007
@@ -806,6 +806,7 @@
warning=Warning!
web_request=HTTP Request
web_server=Web Server
+web_server_client=Client implementation:
web_server_domain=Server Name or IP\:
web_server_port=Port Number\:
web_testing_embedded_url_pattern=Embedded URLs must match\:
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=590678&r1=590677&r2=590678&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 Wed Oct 31 07:05:23 2007
@@ -107,7 +107,9 @@
public final static String URL = "HTTPSampler.URL"; // $NON-NLS-1$
- public final static String DEFAULT_METHOD = GET; // $NON-NLS-1$
+ public static final String CLIENT = "HTTPSampler.client"; // $NON-NLS-1$
+
+ public final static String DEFAULT_METHOD = GET; // $NON-NLS-1$
// Supported methods:
private final static String [] METHODS = {
DEFAULT_METHOD, // i.e. GET
@@ -177,7 +179,7 @@
private static final String RESPONSE_PARSERS= // list of parsers
JMeterUtils.getProperty("HTTPResponse.parsers");//$NON-NLS-1$
- static{
+ static{
String []parsers = JOrphanUtils.split(RESPONSE_PARSERS, " " , true);// returns empty array for null
for (int i=0;i<parsers.length;i++){
final String parser = parsers[i];
@@ -301,6 +303,15 @@
return DEFAULT_PROTOCOL;
}
return protocol;
+ }
+
+
+ public String getClient() {// TODO should it have a default?
+ return getPropertyAsString(CLIENT);
+ }
+
+ public void setClient(String client){
+ setProperty(CLIENT,client);
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org