Apache JMeter
2.0.1.20050615

org.apache.jmeter.protocol.http.parser
Class HtmlParsingUtils

java.lang.Object
  extended byorg.apache.jmeter.protocol.http.parser.HtmlParsingUtils

public final class HtmlParsingUtils
extends Object

Version:
$Revision: 1.10.2.2 $ Last updated: $Date: 2004/07/03 02:07:54 $
Author:
Michael Stover Created June 14, 2001

Nested Class Summary
static class HtmlParsingUtils.Test
           
 
Method Summary
static org.w3c.dom.Document createEmptyDoc()
           
static HTTPSampler createUrlFromAnchor(String parsedUrlString, URL context)
          Create a new URL based on an HREF string plus a contextual URL object.
static List createURLFromForm(org.w3c.dom.Node doc, URL context)
           
static org.w3c.dom.Node getDOM(String text)
          Returns a node representing a whole xml given an xml document.
static org.w3c.tidy.Tidy getParser()
          Returns tidy as HTML parser.
static boolean isAnchorMatched(HTTPSamplerBase newLink, HTTPSamplerBase config)
           
static boolean isArgumentMatched(Argument arg, Argument patternArg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isAnchorMatched

public static boolean isAnchorMatched(HTTPSamplerBase newLink,
                                      HTTPSamplerBase config)
                               throws org.apache.oro.text.regex.MalformedPatternException
Throws:
org.apache.oro.text.regex.MalformedPatternException

isArgumentMatched

public static boolean isArgumentMatched(Argument arg,
                                        Argument patternArg)
                                 throws org.apache.oro.text.regex.MalformedPatternException
Throws:
org.apache.oro.text.regex.MalformedPatternException

getParser

public static org.w3c.tidy.Tidy getParser()
Returns tidy as HTML parser.

Returns:
a tidy HTML parser

getDOM

public static org.w3c.dom.Node getDOM(String text)
                               throws org.xml.sax.SAXException
Returns a node representing a whole xml given an xml document.

Parameters:
text - an xml document
Returns:
a node representing a whole xml
Throws:
org.xml.sax.SAXException

createEmptyDoc

public static org.w3c.dom.Document createEmptyDoc()

createUrlFromAnchor

public static HTTPSampler createUrlFromAnchor(String parsedUrlString,
                                              URL context)
                                       throws MalformedURLException
Create a new URL based on an HREF string plus a contextual URL object. Given that an HREF string might be of three possible forms, some processing is required.

Throws:
MalformedURLException

createURLFromForm

public static List createURLFromForm(org.w3c.dom.Node doc,
                                     URL context)

Apache JMeter
2.0.1.20050615

Copyright © 1998-2005 Apache Software Foundation. All Rights Reserved.