Lines 23-28
Link Here
|
23 |
import org.apache.commons.httpclient.methods.RequestEntity; |
23 |
import org.apache.commons.httpclient.methods.RequestEntity; |
24 |
import org.apache.jmeter.protocol.http.control.Header; |
24 |
import org.apache.jmeter.protocol.http.control.Header; |
25 |
import org.apache.jmeter.protocol.http.control.HeaderManager; |
25 |
import org.apache.jmeter.protocol.http.control.HeaderManager; |
|
|
26 |
import org.apache.jmeter.testelement.property.BooleanProperty; |
26 |
import org.apache.jorphan.logging.LoggingManager; |
27 |
import org.apache.jorphan.logging.LoggingManager; |
27 |
import org.apache.jorphan.util.JOrphanUtils; |
28 |
import org.apache.jorphan.util.JOrphanUtils; |
28 |
import org.apache.log.Logger; |
29 |
import org.apache.log.Logger; |
Lines 53-63
Link Here
|
53 |
public static final String SEND_SOAP_ACTION = "SoapSampler.SEND_SOAP_ACTION"; //$NON-NLS-1$ |
54 |
public static final String SEND_SOAP_ACTION = "SoapSampler.SEND_SOAP_ACTION"; //$NON-NLS-1$ |
54 |
|
55 |
|
55 |
public static final String XML_DATA_FILE = "SoapSampler.xml_data_file"; //$NON-NLS-1$ |
56 |
public static final String XML_DATA_FILE = "SoapSampler.xml_data_file"; //$NON-NLS-1$ |
|
|
57 |
|
58 |
public final static String USE_KEEPALIVE = "HTTPSampler.use_keepalive"; // $NON-NLS-1$ |
56 |
|
59 |
|
57 |
private static final String DOUBLE_QUOTE = "\""; //$NON-NLS-1$ |
60 |
private static final String DOUBLE_QUOTE = "\""; //$NON-NLS-1$ |
58 |
|
61 |
|
59 |
private static final String SOAPACTION = "SOAPAction"; //$NON-NLS-1$ |
62 |
private static final String SOAPACTION = "SOAPAction"; //$NON-NLS-1$ |
60 |
|
63 |
|
61 |
public void setXmlData(String data) { |
64 |
public void setXmlData(String data) { |
62 |
setProperty(XML_DATA, data); |
65 |
setProperty(XML_DATA, data); |
63 |
} |
66 |
} |
Lines 75-81
Link Here
|
75 |
public void setXmlFile(String filename) { |
78 |
public void setXmlFile(String filename) { |
76 |
setProperty(XML_DATA_FILE, filename); |
79 |
setProperty(XML_DATA_FILE, filename); |
77 |
} |
80 |
} |
78 |
|
81 |
|
79 |
/** |
82 |
/** |
80 |
* Get the file location of the xml file. |
83 |
* Get the file location of the xml file. |
81 |
* |
84 |
* |
Lines 84-90
Link Here
|
84 |
public String getXmlFile() { |
87 |
public String getXmlFile() { |
85 |
return getPropertyAsString(XML_DATA_FILE); |
88 |
return getPropertyAsString(XML_DATA_FILE); |
86 |
} |
89 |
} |
|
|
90 |
|
91 |
public void setUseKeepAlive(boolean value) { |
92 |
setProperty(new BooleanProperty(USE_KEEPALIVE, value)); |
93 |
} |
87 |
|
94 |
|
|
|
95 |
public boolean getUseKeepAlive() { |
96 |
return getPropertyAsBoolean(USE_KEEPALIVE); |
97 |
} |
98 |
|
99 |
|
88 |
public String getURLData() { |
100 |
public String getURLData() { |
89 |
return getPropertyAsString(URL_DATA); |
101 |
return getPropertyAsString(URL_DATA); |
90 |
} |
102 |
} |