|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.openware.loadsim.link.LinkData
Each Link object is comprised of 2 parts:
LinkData stores the information needed
to recreate this data during the simulation.
There are 2 ways LinkData objects are created:
LinkData object can be created is
from a link in the page.LinkData object created from the information
on the downloaded page is compared to the LinkData object
for the next link in the sequence of links that defines the simulation.
When a match is found the data from the page is substituted into the data
from the link defined in the configuration file. In this way, the simulation
will get all of the correct data before sending it to the webserver.
The Link class is configured with the following subsection of the
simulation DTD:
<!ELEMENT data (name, value) >
Link, Serialized Form| Constructor Summary | |
LinkData(Config config,
org.w3c.dom.Node node,
java.lang.String sepChar)
|
|
| Method Summary | |
void |
advanceDataSets()
Advance all of the datasets for this link to the next value. |
static LinkData |
createFromQueryString(java.lang.String dataStr,
java.lang.String sepChar)
Create a LinkData object from a query string
present in the downloaded page. |
static LinkData |
createFromWebLink(com.meterware.httpunit.WebLink wl)
|
LinkData |
deepCopy()
|
boolean |
equalsQSData(LinkData otherData)
Compare this LinkData object to one the data
of which comes from a querystring of a link in a downloaded
page. |
java.util.Iterator |
getData()
|
java.lang.String |
getPathQSSepartor()
The path querystring separator is the separator character for LinkDatum for the
LinkData. |
java.lang.String |
getSeparatorChar()
|
boolean |
hasPageData()
|
static void |
main(java.lang.String[] args)
|
void |
setDataSets(java.util.HashMap datasets)
For each DataSetLinkDatum object set the
DataSets. |
void |
setValue(java.lang.String name,
java.lang.String value)
Set the value for a particular link datum (either querystring or form data). |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public LinkData(Config config,
org.w3c.dom.Node node,
java.lang.String sepChar)
throws ConfigException
| Method Detail |
public static LinkData createFromWebLink(com.meterware.httpunit.WebLink wl)
public static LinkData createFromQueryString(java.lang.String dataStr,
java.lang.String sepChar)
LinkData object from a query string
present in the downloaded page.queryStr - The query string. This is just the part of the
query string that contains the data that will
be contained in the LinkData object.sepChar - The character that separates the data.LinkData object.public java.lang.String getSeparatorChar()
public boolean hasPageData()
public void setValue(java.lang.String name,
java.lang.String value)
public void setDataSets(java.util.HashMap datasets)
DataSetLinkDatum object set the
DataSets. It takes a HashMap
of datasets that are visible to the entire simulation
and adds it to the link. In this way the datasets will
be advanced correctly.datasets - The DataSet objects that are
available for the entire simulation.public LinkData deepCopy()
public java.lang.String getPathQSSepartor()
LinkDatum for the
LinkData.String - The character that separates the
pathroot from the query string.public boolean equalsQSData(LinkData otherData)
LinkData object to one the data
of which comes from a querystring of a link in a downloaded
page.otherData - The LinkData created from the
query string.true if the 2 are equal.public void advanceDataSets()
public java.util.Iterator getData()
public java.lang.String toString()
toString in class java.lang.Object
public static void main(java.lang.String[] args)
throws java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||