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 wo...@apache.org on 2004/01/30 14:53:36 UTC
cvs commit: jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/control HeaderManager.java
woolfel 2004/01/30 05:53:36
Modified: src/protocol/http/org/apache/jmeter/protocol/http/control
HeaderManager.java
Log:
added support for soapheader. Since Apache soap doesn't allow an
easy way to get/set headers, have to store the connection object.
WebserviceSampler closes the inputstream on the response has
been read into a stringbuffer, so it should not cause a
memory leak or hold on to the connection longer than necessary
peter lin
Revision Changes Path
1.7 +30 -2 jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/control/HeaderManager.java
Index: HeaderManager.java
===================================================================
RCS file: /home/cvs/jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/control/HeaderManager.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- HeaderManager.java 5 Oct 2003 00:44:02 -0000 1.6
+++ HeaderManager.java 30 Jan 2004 13:53:36 -0000 1.7
@@ -85,7 +85,14 @@
private final static int columnCount = 2;
private final static String[] columnNames =
{ JMeterUtils.getResString("name"), JMeterUtils.getResString("value")};
-
+ /**
+ * Apache SOAP driver does not provide an easy
+ * way to get and set the cookie or HTTP
+ * header. Therefore it is necessary to store
+ * the SOAPHTTPConnection object and reuse it.
+ */
+ private Object SOAPHeader = null;
+
public HeaderManager()
{
setProperty(new CollectionProperty(HEADERS, new ArrayList()));
@@ -379,5 +386,26 @@
public String getClassLabel()
{
return JMeterUtils.getResString("header_manager_title");
+ }
+
+ /**
+ * Added support for SOAP related header stuff.
+ * 1-29-04 Peter Lin
+ * @return
+ */
+ public Object getSOAPHeader(){
+ return this.SOAPHeader;
+ }
+
+ /**
+ * Set the SOAPHeader with the SOAPHTTPConnection
+ * object. We may or may not want to rename this
+ * to setHeaderObject(Object). Concievably, other
+ * samplers may need this kind of functionality.
+ * 1-29-04 Peter Lin
+ * @param header
+ */
+ public void setSOAPHeader(Object header){
+ this.SOAPHeader = header;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org