|
Apache JMeter 2.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.samplers.AbstractSampler
org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase
org.apache.jmeter.protocol.http.sampler.HTTPSampler2
org.apache.jmeter.protocol.http.sampler.SoapSampler
Commons HTTPClient based soap sampler
Field Summary | |
static String |
SEND_SOAP_ACTION
|
static String |
SOAP_ACTION
|
static String |
URL_DATA
|
static String |
XML_DATA
|
static String |
XML_DATA_FILE
|
Fields inherited from interface org.apache.jmeter.testelement.TestElement |
ENABLED, GUI_CLASS, NAME, TEST_CLASS |
Constructor Summary | |
SoapSampler()
|
Method Summary | |
boolean |
getSendSOAPAction()
|
String |
getSOAPAction()
|
String |
getSOAPActionQuoted()
|
URL |
getUrl()
Get the URL, built from its component parts. |
String |
getURLData()
|
String |
getXmlData()
|
String |
getXmlFile()
Get the file location of the xml file. |
protected HTTPSampleResult |
sample(URL url,
String method,
boolean areFollowingRedirect,
int frameDepth)
Samples the URL passed in and stores the result in HTTPSampleResult , following redirects and downloading
page resources as appropriate.
|
protected void |
sendPostData(org.apache.commons.httpclient.methods.PostMethod post)
Send POST data from Entry to the open connection. |
protected void |
setPostHeaders(org.apache.commons.httpclient.methods.PostMethod post)
|
void |
setSendSOAPAction(boolean action)
|
void |
setSOAPAction(String action)
|
void |
setURLData(String url)
|
void |
setXmlData(String data)
|
void |
setXmlFile(String filename)
it's kinda obvious, but we state it anyways. |
Methods inherited from class org.apache.jmeter.protocol.http.sampler.HTTPSampler2 |
getResponseHeaders, threadFinished, threadStarted |
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement |
addProperty, canRemove, clear, clearTemporary, emptyTemporary, equals, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyAsString, getThreadContext, getThreadName, isEnabled, isRunningVersion, isTemporary, logProperties, mergeIn, nextIsNull, propertyIterator, recoverRunningVersion, removeProperty, setName, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse, traverseCollection, traverseMap, traverseProperty |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.jmeter.testelement.TestElement |
canRemove, clear, getProperty, getPropertyAsBoolean, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getThreadContext, getThreadName, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse |
Field Detail |
public static final String XML_DATA
public static final String URL_DATA
public static final String SOAP_ACTION
public static final String SEND_SOAP_ACTION
public static final String XML_DATA_FILE
Constructor Detail |
public SoapSampler()
Method Detail |
public void setXmlData(String data)
public String getXmlData()
public void setXmlFile(String filename)
filename
- public String getXmlFile()
public String getURLData()
public void setURLData(String url)
public String getSOAPAction()
public String getSOAPActionQuoted()
public void setSOAPAction(String action)
public boolean getSendSOAPAction()
public void setSendSOAPAction(boolean action)
protected void setPostHeaders(org.apache.commons.httpclient.methods.PostMethod post) throws IOException
IOException
protected void sendPostData(org.apache.commons.httpclient.methods.PostMethod post) throws IOException
Entry
to the open connection.
post
-
IOException
- if an I/O exception occursprotected HTTPSampleResult sample(URL url, String method, boolean areFollowingRedirect, int frameDepth)
HTTPSampler2
HTTPSampleResult
, following redirects and downloading
page resources as appropriate.
When getting a redirect target, redirects are not followed and resources are not downloaded. The caller will take care of this.
sample
in class HTTPSampler2
url
- URL to samplemethod
- HTTP method: GET, POST,...areFollowingRedirect
- whether we're getting a redirect targetframeDepth
- Depth of this target in the frame structure. Used only to
prevent infinite recursion.
public URL getUrl() throws MalformedURLException
HTTPSamplerBase
getUrl
in class HTTPSamplerBase
MalformedURLException
|
Apache JMeter 2.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |