Apache JMeter
1.9

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

java.lang.Object
  |
  +--org.apache.jmeter.testelement.AbstractTestElement
        |
        +--org.apache.jmeter.samplers.AbstractSampler
              |
              +--org.apache.jmeter.protocol.http.sampler.HTTPSampler
                    |
                    +--org.apache.jmeter.protocol.http.sampler.SoapSampler
All Implemented Interfaces:
Cloneable, Sampler, Serializable, TestElement

public class SoapSampler
extends HTTPSampler

Sampler to handle SOAP Requests

Version:
$Id: SoapSampler.java,v 1.5 2003/08/06 19:35:38 mstover1 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.HTTPSampler
ARGUMENTS, AUTH_MANAGER, conn, CONTENT_TYPE, COOKIE_MANAGER, DEFAULT_PROTOCOL, DOMAIN, ENCODED_PATH, encoding, FILE_DATA, FILE_FIELD, FILE_MIMETYPE, FILE_NAME, FOLLOW_REDIRECTS, GET, HEADER, HEADER_MANAGER, HEADERS, IMAGE_PARSER, METHOD, MIMETYPE, MULTIPART_FORM, NON_HTTP_RESPONSE_CODE, NON_HTTP_RESPONSE_MESSAGE, NORMAL_FORM, PATH, PORT, POST, PROTOCOL, UNSPECIFIED_PORT, URL, USE_KEEPALIVE
 
Fields inherited from class org.apache.jmeter.testelement.AbstractTestElement
log
 
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
addArgument, addArgument, addEncodedArgument, addProperty, addTestElement, connect, disconnect, getArguments, getAuthManager, getCookieManager, getDomain, getEncodedPath, getFileField, getFilename, getFollowRedirects, getHeaderManager, getMethod, getMimetype, getPath, getPort, getProtocol, getQueryString, getResponseHeaders, getUrl, getUseKeepAlive, isImageParser, parseArguments, readResponse, removeArguments, sample, setArguments, setAuthManager, setCookieManager, setDomain, setEncodedPath, setFileField, setFilename, setFollowRedirects, setHeaderManager, setImageParser, setMethod, setMimetype, setPath, setPort, setProperty, setProtocol, setupConnection, setUseKeepAlive
 
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
clear, clone, equals, getName, getProperty, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, isRunningVersion, logProperties, mergeIn, nextIsNull, propertyIterator, recoverRunningVersion, removeProperty, setName, setProperty, setRunningVersion, 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
clear, clone, getProperty, getPropertyAsBoolean, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, isRunningVersion, propertyIterator, recoverRunningVersion, removeProperty, setProperty, setRunningVersion, 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: HTTPSampler
Do a sampling and return its results.

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

toString

public String toString()
Overrides:
toString in class HTTPSampler

Apache JMeter
1.9

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