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 2005/06/16 00:53:14 UTC
cvs commit: jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/control Header.java
sebb 2005/06/15 15:53:14
Modified: src/protocol/http/org/apache/jmeter/protocol/http/control
Header.java
Log:
Bug 35370 - Header class setting was setting incorrect variable name
Revision Changes Path
1.8 +20 -3 jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/control/Header.java
Index: Header.java
===================================================================
RCS file: /home/cvs/jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/control/Header.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- Header.java 10 Dec 2004 21:32:52 -0000 1.7
+++ Header.java 15 Jun 2005 22:53:14 -0000 1.8
@@ -31,7 +31,8 @@
*/
public class Header extends AbstractTestElement implements Serializable
{
- private static String VALUE = "Header.value";
+ private static final String HNAME = "Header.name";
+ private static final String VALUE = "Header.value";
/**
* Create the header.
@@ -68,6 +69,22 @@
/**
* Get the value for this object.
*/
+ public synchronized String getName()
+ {
+ return getPropertyAsString(HNAME);
+ }
+
+ /**
+ * Set the value for this object.
+ */
+ public synchronized void setName(String name)
+ {
+ this.setProperty(HNAME, name);
+ }
+
+ /**
+ * Get the value for this object.
+ */
public synchronized String getValue()
{
return getPropertyAsString(VALUE);
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org