Java Doc for WebServiceSampler.java in  » Testing » jakarta-jmeter » org » apache » jmeter » protocol » http » sampler » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Testing » jakarta jmeter » org.apache.jmeter.protocol.http.sampler 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase
   org.apache.jmeter.protocol.http.sampler.WebServiceSampler

WebServiceSampler
public class WebServiceSampler extends HTTPSamplerBase (Code)
Sampler to handle Web Service requests. It uses Apache SOAP drivers to perform the XML generation, connection, SOAP encoding and other SOAP functions.

Created on: Jun 26, 2003





Method Summary
public  voidaddEncodedArgument(String name, String value, String metaData)
     We override this to prevent the wrong encoding and provide no implementation.
public  StringconvertSoapHeaders(Hashtable ht)
    
public  booleangetMemoryCache()
     Get the memory cache.
public  StringgetProxyHost()
    
public  intgetProxyPort()
    
protected  StringgetRandomFileName()
     Method is used internally to check if a random file should be used for the message.
public  booleangetReadResponse()
     Return whether or not to read the response.
public  StringgetSoapAction()
     Return the soap action string.
public  StringgetTimeout()
    
public  intgetTimeoutAsInt()
    
public  booleangetUseProxy()
    
public  StringgetWsdlURL()
    
public  StringgetXmlData()
     Get the XML data as a string.
public  StringgetXmlFile()
     Get the file location of the xml file.
public  StringgetXmlPathLoc()
     Get the path where XML messages are stored.
protected  HTTPSampleResultsample(URL u, String s, boolean b, int i)
    
public  SampleResultsample()
     Sample the URL using Apache SOAP driver.
public  voidsetMemoryCache(boolean cache)
     Set the memory cache.
public  voidsetProxyHost(String host)
    
public  voidsetProxyPort(String port)
    
public  voidsetReadResponse(boolean read)
     Set whether the sampler should read the response or not.
public  voidsetSoapAction(String data)
     Set the soap action which should be in the form of an URN.
public  voidsetTimeout(String text)
    
public  voidsetUseProxy(boolean proxy)
    
public  voidsetWsdlURL(String url)
    
public  voidsetXmlData(String data)
     Set the XML data.
public  voidsetXmlFile(String filename)
     it's kinda obvious, but we state it anyways.
public  voidsetXmlPathLoc(String path)
     Set the path where XML messages are stored for random selection.



Method Detail
addEncodedArgument
public void addEncodedArgument(String name, String value, String metaData)(Code)
We override this to prevent the wrong encoding and provide no implementation. We want to reuse the other parts of HTTPSampler, but not the connection. The connection is handled by the Apache SOAP driver.



convertSoapHeaders
public String convertSoapHeaders(Hashtable ht)(Code)



getMemoryCache
public boolean getMemoryCache()(Code)
Get the memory cache. boolean cache



getProxyHost
public String getProxyHost()(Code)
Return the proxy hostname the proxy hostname



getProxyPort
public int getProxyPort()(Code)
Return the proxy port the proxy port



getRandomFileName
protected String getRandomFileName()(Code)
Method is used internally to check if a random file should be used for the message. Messages must be valid. This is one way to load test with different messages. The limitation of this approach is parsing XML takes CPU resources, so it could affect JMeter GUI responsiveness. String filename



getReadResponse
public boolean getReadResponse()(Code)
Return whether or not to read the response. boolean



getSoapAction
public String getSoapAction()(Code)
Return the soap action string. String soap action



getTimeout
public String getTimeout()(Code)



getTimeoutAsInt
public int getTimeoutAsInt()(Code)



getUseProxy
public boolean getUseProxy()(Code)
Return whether or not to use proxy true if should use proxy



getWsdlURL
public String getWsdlURL()(Code)
method returns the WSDL URL the WSDL URL



getXmlData
public String getXmlData()(Code)
Get the XML data as a string. String data



getXmlFile
public String getXmlFile()(Code)
Get the file location of the xml file. String file path.



getXmlPathLoc
public String getXmlPathLoc()(Code)
Get the path where XML messages are stored. this is the directory where JMeter will randomly select a file.



sample
protected HTTPSampleResult sample(URL u, String s, boolean b, int i)(Code)



sample
public SampleResult sample()(Code)
Sample the URL using Apache SOAP driver. Implementation note for myself and those that are curious. Current logic marks the end after the response has been read. If read response is set to false, the buffered reader will read, but do nothing with it. Essentially, the stream from the server goes into the ether.



setMemoryCache
public void setMemoryCache(boolean cache)(Code)
Set the memory cache.
Parameters:
  cache -



setProxyHost
public void setProxyHost(String host)(Code)
Set the proxy hostname
Parameters:
  host -



setProxyPort
public void setProxyPort(String port)(Code)
Set the proxy port
Parameters:
  port -



setReadResponse
public void setReadResponse(boolean read)(Code)
Set whether the sampler should read the response or not.
Parameters:
  read -



setSoapAction
public void setSoapAction(String data)(Code)
Set the soap action which should be in the form of an URN.
Parameters:
  data -



setTimeout
public void setTimeout(String text)(Code)



setUseProxy
public void setUseProxy(boolean proxy)(Code)
Set whether or not to use a proxy
Parameters:
  proxy -



setWsdlURL
public void setWsdlURL(String url)(Code)

Parameters:
  url -



setXmlData
public void setXmlData(String data)(Code)
Set the XML data.
Parameters:
  data -



setXmlFile
public void setXmlFile(String filename)(Code)
it's kinda obvious, but we state it anyways. Set the xml file with a string path.
Parameters:
  filename -



setXmlPathLoc
public void setXmlPathLoc(String path)(Code)
Set the path where XML messages are stored for random selection.



Fields inherited from org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase
final public static String ARGUMENTS(Code)(Java Doc)
final public static String AUTH_MANAGER(Code)(Java Doc)
final public static String AUTO_REDIRECTS(Code)(Java Doc)
final public static String CLIENT(Code)(Java Doc)
final public static String CONTENT_ENCODING(Code)(Java Doc)
final public static String CONTENT_TYPE(Code)(Java Doc)
final public static String COOKIE_MANAGER(Code)(Java Doc)
final public static String DEFAULT_METHOD(Code)(Java Doc)
final public static String DOMAIN(Code)(Java Doc)
final public static String DO_MULTIPART_POST(Code)(Java Doc)
final public static String EMBEDDED_URL_RE(Code)(Java Doc)
final public static String FILE_FIELD(Code)(Java Doc)
final public static String FILE_NAME(Code)(Java Doc)
final public static String FOLLOW_REDIRECTS(Code)(Java Doc)
final public static String HEADER_MANAGER(Code)(Java Doc)
final public static String IMAGE_PARSER(Code)(Java Doc)
final public static String IMPLEMENTATION(Code)(Java Doc)
final protected static int MAX_FRAME_DEPTH(Code)(Java Doc)
final protected static int MAX_REDIRECTS(Code)(Java Doc)
final public static String METHOD(Code)(Java Doc)
final public static String MIMETYPE(Code)(Java Doc)
final public static String MONITOR(Code)(Java Doc)
final protected static String NON_HTTP_RESPONSE_CODE(Code)(Java Doc)
final protected static String NON_HTTP_RESPONSE_MESSAGE(Code)(Java Doc)
final public static String PATH(Code)(Java Doc)
final public static String PORT(Code)(Java Doc)
final public static String PROTOCOL(Code)(Java Doc)
final public static int UNSPECIFIED_PORT(Code)(Java Doc)
final public static String UNSPECIFIED_PORT_AS_STRING(Code)(Java Doc)
final public static String URL(Code)(Java Doc)
final public static String USE_KEEPALIVE(Code)(Java Doc)

Methods inherited from org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase
public void addArgument(String name, String value)(Code)(Java Doc)
public void addArgument(String name, String value, String metadata)(Code)(Java Doc)
public void addEncodedArgument(String name, String value)(Code)(Java Doc)
public void addEncodedArgument(String name, String value, String metaData, String contentEncoding)(Code)(Java Doc)
public void addEncodedArgument(String name, String value, String metaData)(Code)(Java Doc)
public void addNonEncodedArgument(String name, String value, String metadata)(Code)(Java Doc)
public void addTestElement(TestElement el)(Code)(Java Doc)
public Object clone()(Code)(Java Doc)
protected HTTPSampleResult downloadPageResources(HTTPSampleResult res, HTTPSampleResult container, int frameDepth)(Code)(Java Doc)
protected static String encodeBackSlashes(String value)(Code)(Java Doc)
protected String encodeSpaces(String path)(Code)(Java Doc)
protected HTTPSampleResult errorResult(Throwable e, HTTPSampleResult res)(Code)(Java Doc)
protected HTTPSampleResult followRedirects(HTTPSampleResult res, int frameDepth)(Code)(Java Doc)
public Arguments getArguments()(Code)(Java Doc)
public AuthManager getAuthManager()(Code)(Java Doc)
public boolean getAutoRedirects()(Code)(Java Doc)
public String getClient()(Code)(Java Doc)
public String getContentEncoding()(Code)(Java Doc)
public CookieManager getCookieManager()(Code)(Java Doc)
public static int getDefaultPort(String protocol, int port)(Code)(Java Doc)
public boolean getDoMultipartPost()(Code)(Java Doc)
public String getDomain()(Code)(Java Doc)
public String getEmbeddedUrlRE()(Code)(Java Doc)
public String getFileField()(Code)(Java Doc)
public String getFilename()(Code)(Java Doc)
public boolean getFollowRedirects()(Code)(Java Doc)
public HeaderManager getHeaderManager()(Code)(Java Doc)
public String getImplementation()(Code)(Java Doc)
public String getMethod()(Code)(Java Doc)
public String getMimetype()(Code)(Java Doc)
public String getMonitor()(Code)(Java Doc)
public String getPath()(Code)(Java Doc)
public int getPort()(Code)(Java Doc)
public String getProtocol()(Code)(Java Doc)
public String getQueryString()(Code)(Java Doc)
public String getQueryString(String contentEncoding)(Code)(Java Doc)
public boolean getSendFileAsPostBody()(Code)(Java Doc)
public boolean getSendParameterValuesAsPostBody()(Code)(Java Doc)
public URL getUrl() throws MalformedURLException(Code)(Java Doc)
public boolean getUseKeepAlive()(Code)(Java Doc)
public boolean getUseMultipartForPost()(Code)(Java Doc)
public static String[] getValidMethodsAsArray()(Code)(Java Doc)
public boolean hasArguments()(Code)(Java Doc)
protected boolean hasUploadableFiles()(Code)(Java Doc)
public boolean isImageParser()(Code)(Java Doc)
public boolean isMonitor()(Code)(Java Doc)
public boolean isProtocolDefaultPort()(Code)(Java Doc)
public static boolean isSecure(String protocol)(Code)(Java Doc)
public static boolean isSecure(URL url)(Code)(Java Doc)
protected boolean isSuccessCode(int code)(Code)(Java Doc)
public void parseArguments(String queryString, String contentEncoding)(Code)(Java Doc)
public void parseArguments(String queryString)(Code)(Java Doc)
protected HTTPSampleResult resultProcessing(boolean areFollowingRedirect, int frameDepth, HTTPSampleResult res)(Code)(Java Doc)
public SampleResult sample(Entry e)(Code)(Java Doc)
public SampleResult sample()(Code)(Java Doc)
abstract protected HTTPSampleResult sample(URL u, String method, boolean areFollowingRedirect, int depth)(Code)(Java Doc)
public void setArguments(Arguments value)(Code)(Java Doc)
public void setAuthManager(AuthManager value)(Code)(Java Doc)
public void setAutoRedirects(boolean value)(Code)(Java Doc)
public void setClient(String client)(Code)(Java Doc)
public void setContentEncoding(String value)(Code)(Java Doc)
public void setCookieManager(CookieManager value)(Code)(Java Doc)
public void setDoMultipartPost(boolean value)(Code)(Java Doc)
public void setDomain(String value)(Code)(Java Doc)
public void setEmbeddedUrlRE(String regex)(Code)(Java Doc)
public void setFileField(String value)(Code)(Java Doc)
public void setFilename(String value)(Code)(Java Doc)
public void setFollowRedirects(boolean value)(Code)(Java Doc)
public void setHeaderManager(HeaderManager value)(Code)(Java Doc)
public void setImageParser(boolean parseImages)(Code)(Java Doc)
public void setImplementation(String value)(Code)(Java Doc)
public void setMethod(String value)(Code)(Java Doc)
public void setMimetype(String value)(Code)(Java Doc)
public void setMonitor(String value)(Code)(Java Doc)
public void setMonitor(boolean truth)(Code)(Java Doc)
public void setPath(String path)(Code)(Java Doc)
public void setPath(String path, String contentEncoding)(Code)(Java Doc)
public void setPort(int value)(Code)(Java Doc)
public void setProtocol(String value)(Code)(Java Doc)
public void setUseKeepAlive(boolean value)(Code)(Java Doc)
public void testEnded()(Code)(Java Doc)
public void testEnded(String host)(Code)(Java Doc)
public void testIterationStart(LoopIterationEvent event)(Code)(Java Doc)
public void testStarted()(Code)(Java Doc)
public void testStarted(String host)(Code)(Java Doc)
public void threadFinished()(Code)(Java Doc)
public void threadStarted()(Code)(Java Doc)
public String toString()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.