Apache JMeter
2.0.1.20050615

org.apache.jmeter.protocol.http.sampler
Class SoapSampler

java.lang.Object
  extended byorg.apache.jmeter.testelement.AbstractTestElement
      extended byorg.apache.jmeter.samplers.AbstractSampler
          extended byorg.apache.jmeter.protocol.http.sampler.HTTPSamplerBase
              extended byorg.apache.jmeter.protocol.http.sampler.HTTPSampler
                  extended byorg.apache.jmeter.protocol.http.sampler.SoapSampler
All Implemented Interfaces:
Cloneable, Sampler, Serializable, TestElement, TestListener

public class SoapSampler
extends HTTPSampler

Sampler to handle SOAP Requests.

Version:
$Id: SoapSampler.java,v 1.11.2.1 2004/09/21 18:25:37 sebb Exp $
Author:
Jordi Salvat i Alabart
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.apache.jmeter.protocol.http.sampler.HTTPSampler
HTTPSampler.Test
 
Field Summary
static String URL_DATA
           
static String XML_DATA
           
 
Fields inherited from class org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase
ARGUMENTS, AUTH_MANAGER, AUTO_REDIRECTS, CONTENT_TYPE, COOKIE_MANAGER, DEFAULT_HTTP_PORT, DEFAULT_HTTPS_PORT, DEFAULT_PROTOCOL, DOMAIN, FILE_DATA, FILE_FIELD, FILE_MIMETYPE, FILE_NAME, FOLLOW_REDIRECTS, GET, HEADER_MANAGER, IMAGE_PARSER, MAX_FRAME_DEPTH, MAX_REDIRECTS, METHOD, MIMETYPE, MONITOR, MULTIPART_FORM, NON_HTTP_RESPONSE_CODE, NON_HTTP_RESPONSE_MESSAGE, NORMAL_FORM, PATH, PORT, POST, PROTOCOL, UNSPECIFIED_PORT, URL, USE_KEEPALIVE
 
Fields inherited from interface org.apache.jmeter.testelement.TestElement
ENABLED, GUI_CLASS, NAME, TEST_CLASS
 
Constructor Summary
SoapSampler()
           
 
Method Summary
 String getURLData()
           
 String getXmlData()
           
 SampleResult sample(Entry e)
          Do a sampling and return its results.
 void sendPostData(URLConnection connection)
          Send POST data from Entry to the open connection.
 void setPostHeaders(URLConnection connection)
          Set the HTTP request headers in preparation to open the connection and sending the POST data.
 void setURLData(String url)
           
 void setXmlData(String data)
           
 String toString()
           
 
Methods inherited from class org.apache.jmeter.protocol.http.sampler.HTTPSampler
disconnect, getResponseHeaders, modifyHeaderValues, readResponse, sample, setupConnection
 
Methods inherited from class org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase
addArgument, addArgument, addEncodedArgument, addTestElement, clone, downloadPageResources, encodeSpaces, errorResult, getArguments, getAuthManager, getCookieManager, getDomain, getFileField, getFilename, getFollowRedirects, getHeaderManager, getMethod, getMimetype, getMonitor, getPath, getPort, getProtocol, getQueryString, getUrl, getUseKeepAlive, isImageParser, isMonitor, parseArguments, sample, setArguments, setAuthManager, setCookieManager, setDomain, setFileField, setFilename, setFollowRedirects, setHeaderManager, setImageParser, setMethod, setMimetype, setMonitor, setPath, setPort, setProtocol, setUseKeepAlive, testEnded, testEnded, testIterationStart, testStarted, testStarted
 
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
addProperty, canRemove, clear, clearTemporary, emptyTemporary, equals, getName, getProperty, getPropertyAsBoolean, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getThreadContext, getThreadName, isRunningVersion, isTemporary, logProperties, mergeIn, nextIsNull, propertyIterator, recoverRunningVersion, removeProperty, setName, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, threadFinished, threadStarted, 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, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setProperty, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, threadFinished, threadStarted, traverse
 

Field Detail

XML_DATA

public static final String XML_DATA
See Also:
Constant Field Values

URL_DATA

public static final String URL_DATA
See Also:
Constant Field Values
Constructor Detail

SoapSampler

public SoapSampler()
Method Detail

setXmlData

public void setXmlData(String data)

getXmlData

public String getXmlData()

getURLData

public String getURLData()

setURLData

public void setURLData(String url)

setPostHeaders

public void setPostHeaders(URLConnection connection)
                    throws IOException
Set the HTTP request headers in preparation to open the connection and sending the POST data.

Overrides:
setPostHeaders in class HTTPSampler
Parameters:
connection - URLConnection to set headers on
Throws:
IOException - if an I/O exception occurs

sendPostData

public void sendPostData(URLConnection connection)
                  throws IOException
Send POST data from Entry to the open connection.

Overrides:
sendPostData in class HTTPSampler
Parameters:
connection - URLConnection of where POST data should be sent
Throws:
IOException - if an I/O exception occurs

sample

public SampleResult sample(Entry e)
Description copied from class: HTTPSamplerBase
Do a sampling and return its results.

Specified by:
sample in interface Sampler
Overrides:
sample in class HTTPSamplerBase
Parameters:
e - Entry to be sampled
Returns:
results of the sampling

toString

public String toString()
Overrides:
toString in class HTTPSamplerBase

Apache JMeter
2.0.1.20050615

Copyright © 1998-2005 Apache Software Foundation. All Rights Reserved.