jsalvata 2003/11/25 09:17:30
Modified: src/protocol/http/org/apache/jmeter/protocol/http/modifier
AnchorModifier.java
Log:
Part of earlier HTMLParser refactoring.
Sorry, I'm having trouble with migrating from lincvs to Eclipse for CVS management.
Revision Changes Path
1.9 +8 -8
jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/modifier/AnchorModifier.java
Index: AnchorModifier.java
===================================================================
RCS file:
/home/cvs/jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/modifier/AnchorModifier.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- AnchorModifier.java 16 Aug 2003 17:22:51 -0000 1.8
+++ AnchorModifier.java 25 Nov 2003 17:17:30 -0000 1.9
@@ -70,7 +70,7 @@
import org.apache.jmeter.config.Arguments;
import org.apache.jmeter.config.ConfigElement;
import org.apache.jmeter.processor.PreProcessor;
-import org.apache.jmeter.protocol.http.parser.HtmlParser;
+import org.apache.jmeter.protocol.http.parser.HtmlParsingUtils;
import org.apache.jmeter.protocol.http.sampler.HTTPSampler;
import org.apache.jmeter.samplers.SampleResult;
import org.apache.jmeter.samplers.Sampler;
@@ -134,7 +134,7 @@
{
index = 0;
}
- html = (Document) HtmlParser.getDOM(responseText.substring(index));
+ html = (Document)
HtmlParsingUtils.getDOM(responseText.substring(index));
}
catch (SAXException e)
{
@@ -180,7 +180,7 @@
replacementArg = (Argument) iter.next().getObjectValue();
try
{
- if (HtmlParser.isArgumentMatched(replacementArg, arg))
+ if (HtmlParsingUtils.isArgumentMatched(replacementArg, arg))
{
possibleReplacements.add(replacementArg);
}
@@ -221,7 +221,7 @@
for (int x = 0; x < rootList.getLength(); x++)
{
urls.addAll(
- HtmlParser.createURLFromForm(
+ HtmlParsingUtils.createURLFromForm(
rootList.item(x),
(HTTPSampler) JMeterContextService
.getContext()
@@ -234,7 +234,7 @@
try
{
newUrl.setMethod(HTTPSampler.POST);
- if (HtmlParser.isAnchorMatched(newUrl, config))
+ if (HtmlParsingUtils.isAnchorMatched(newUrl, config))
{
potentialLinks.add(newUrl);
}
@@ -266,14 +266,14 @@
try
{
HTTPSampler newUrl =
- HtmlParser.createUrlFromAnchor(
+ HtmlParsingUtils.createUrlFromAnchor(
hrefStr,
(HTTPSampler) JMeterContextService
.getContext()
.getPreviousSampler());
newUrl.setMethod(HTTPSampler.GET);
log.debug("possible match: " + newUrl);
- if (HtmlParser.isAnchorMatched(newUrl, config))
+ if (HtmlParsingUtils.isAnchorMatched(newUrl, config))
{
log.debug("Is a match! " + newUrl);
potentialLinks.add(newUrl);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]