|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.openware.loadsim.link.Link
This class represents a URL for a virtual user. During the simulation the virtual user submits a series of requests which are encapsulated by this class.
Field Summary | |
static int |
FIRST
If there are multiple links in the page that match the link defined by this object then some rule must be used to pick the one to use. |
static int |
FORM
|
static int |
GET
|
static int |
LINK
|
static int |
POST
|
static int |
RANDOM
If there are multiple links in the page that match the link defined by this object then some rule must be used to pick the one to use. |
Constructor Summary | |
Link(Config config,
org.w3c.dom.Node node)
|
Method Summary | |
Link |
deepCopy()
|
LinkData |
getFormData()
Get the form data. |
LinkData |
getQueryStringData()
Get query string data. |
long |
getWaitTime()
Get the time to wait before submitting the link. |
SampleResult |
sample_test(CookieManager cookieManager,
ILog log)
|
SampleResult |
sample(CookieManager cookieManager,
ILog log)
Send the link to the webserver using the VirtualUser 's
CookieManager . |
void |
setDataSets(java.util.HashMap datasets)
Set the data sets for the link. |
void |
setupLink(com.meterware.httpunit.WebResponse lastpage,
ILog log)
Called before the current link is sent to the web server. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int FORM
public static final int LINK
public static final int POST
public static final int GET
public static final int RANDOM
RANDOM will pick the link at random.
public static final int FIRST
Constructor Detail |
public Link(Config config, org.w3c.dom.Node node) throws ConfigException
Method Detail |
public Link deepCopy()
public LinkData getQueryStringData()
public LinkData getFormData()
public long getWaitTime()
public void setDataSets(java.util.HashMap datasets)
public void setupLink(com.meterware.httpunit.WebResponse lastpage, ILog log) throws LinkException
The second step involves filling in the pertinent instance
variables for use in the sample
method.
lastpage
- The contents of the last HTML page downloaded.
This page is used to fill in page type links
specified in the configuration file.public SampleResult sample(CookieManager cookieManager, ILog log) throws java.io.IOException
VirtualUser
's
CookieManager
.cookieManager
- The VirtualUser
's CookieManager
.log
- The log file to log information/errors to.SampleResult
object.java.io.IOException
- if an error occurs reading from or writing to the
webserver.public SampleResult sample_test(CookieManager cookieManager, ILog log) throws java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |