|
Test webapp | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectadriani.webapp.util.ClientThread
public class ClientThread
Class implementing the Runnable
interface and used by the test_concurrent.jsp
page
to verify the behaviour or web services under concurrent invocations.
Field Summary | |
---|---|
SimpleHTTPClient |
client
The SOAP client calling the service using HTTP transport |
int |
index
The integer index of this Thread, as created by the JSP page. |
protected java.lang.String |
leadingName
The leading name of each message logged on the STDOUT. |
java.lang.String |
param
The string value to be used for the soap input request. |
java.lang.StringBuffer |
response
The string value to be used for the soap output response. |
java.lang.String |
server
The URL of the target server hosting the web service (EPR). |
java.lang.Thread |
theThread
Thread of this runnable object |
Constructor Summary | |
---|---|
ClientThread(int index)
Standart constructor for this class. |
Method Summary | |
---|---|
java.lang.StringBuffer |
getResponse()
Return the response obtained by this thread. |
void |
init(java.lang.String server,
java.lang.String ns,
java.lang.String tag_1,
java.lang.String tag_2,
java.lang.String param)
Initialize this thread and set parameters in the SOAP client. |
void |
run()
This method is invoked by the JSP page by calling client[i].theThread.start() : it invokes
the web service using the SimpleHTTPClient class and then exit. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.Thread theThread
public SimpleHTTPClient client
public java.lang.String server
public java.lang.String param
public java.lang.StringBuffer response
public int index
protected java.lang.String leadingName
Constructor Detail |
---|
public ClientThread(int index)
index
- the int code used to identy this thread.Method Detail |
---|
public void init(java.lang.String server, java.lang.String ns, java.lang.String tag_1, java.lang.String tag_2, java.lang.String param)
server
- the URL of the target server hosting the web service (EPR).ns
- the namespace used to define the XML elements in the service's WSDL.tag_1
- the opening tag of the input element.tag_2
- the closing tag of the output element.param
- the string value to be used for the main request element.public void run()
client[i].theThread.start()
: it invokes
the web service using the SimpleHTTPClient
class and then exit.
run
in interface java.lang.Runnable
public java.lang.StringBuffer getResponse()
|
Build 10/01/2013 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |