Apache JMeter
1.9

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

java.lang.Object
  |
  +--org.apache.jmeter.protocol.http.parser.HtmlParser
All Implemented Interfaces:
Serializable

public class HtmlParser
extends Object
implements Serializable

Title: Description: Copyright: Copyright (c) 2001 Company:

Version:
1.0
Author:
Michael Stover
See Also:
Serialized Form

Nested Class Summary
static class HtmlParser.Test
          !
 
Field Summary
protected static String utfEncodingName
          !
 
Constructor Summary
HtmlParser()
          Constructor for the HtmlParser object
 
Method Summary
static org.w3c.dom.Document createEmptyDoc()
          !
static HTTPSampler createUrlFromAnchor(String parsedUrlString, HTTPSampler context)
          Create a new URL based on an HREF string plus a contextual URL object.
static List createURLFromForm(org.w3c.dom.Node doc, HTTPSampler 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 String getUTFEncodingName()
          Returns the encoding type which is different for different jdks even though the mean the same thing i.e.
static boolean isAnchorMatched(HTTPSampler newLink, HTTPSampler 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
 

Field Detail

utfEncodingName

protected static String utfEncodingName
!ToDo (Field description)

Constructor Detail

HtmlParser

public HtmlParser()
Constructor for the HtmlParser object

Method Detail

isAnchorMatched

public static boolean isAnchorMatched(HTTPSampler newLink,
                                      HTTPSampler config)
                               throws org.apache.oro.text.regex.MalformedPatternException
!ToDoo (Method description)

Parameters:
newLink - !ToDo (Parameter description)
config - !ToDo (Parameter description)
Returns:
!ToDo (Return description)
Throws:
org.apache.oro.text.regex.MalformedPatternException - !ToDo (Exception description)

isArgumentMatched

public static boolean isArgumentMatched(Argument arg,
                                        Argument patternArg)
                                 throws org.apache.oro.text.regex.MalformedPatternException
!ToDoo (Method description)

Parameters:
arg - !ToDo (Parameter description)
patternArg - !ToDo (Parameter description)
Returns:
!ToDo (Return description)
Throws:
org.apache.oro.text.regex.MalformedPatternException - !ToDo (Exception description)

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 - !ToDo (Exception description)

getUTFEncodingName

public static String getUTFEncodingName()
Returns the encoding type which is different for different jdks even though the mean the same thing i.e. UTF8 or UTF-8

Returns:
either UTF8 or UTF-8 depending on the jdk version

createEmptyDoc

public static org.w3c.dom.Document createEmptyDoc()
!ToDo (Method description)

Returns:
!ToDo (Return description)

createUrlFromAnchor

public static HTTPSampler createUrlFromAnchor(String parsedUrlString,
                                              HTTPSampler 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.

Parameters:
parsedUrlString - !ToDo (Parameter description)
context - !ToDo (Parameter description)
Returns:
!ToDo (Return description)
Throws:
MalformedURLException - !ToDo (Exception description)

createURLFromForm

public static List createURLFromForm(org.w3c.dom.Node doc,
                                     HTTPSampler context)
!ToDo (Method description)

Parameters:
context - !ToDo (Parameter description)
doc - !ToDo (Parameter description)
Returns:
!ToDo (Return description)

Apache JMeter
1.9

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