| java.lang.Object org.apache.jmeter.protocol.http.parser.HtmlParsingUtils
HtmlParsingUtils | final public class HtmlParsingUtils (Code) | | author: Michael Stover Created June 14, 2001 |
Method Summary | |
public static Document | createEmptyDoc() | public static List | createURLFromForm(Node doc, URL context) | public static HTTPSamplerBase | createUrlFromAnchor(String parsedUrlString, URL context) Create a new Sampler based on an HREF string plus a contextual URL
object. | public static void | extractStyleURLs(URL baseUrl, URLCollection urls, String styleTagStr) | public static Node | getDOM(String text) Returns a node representing a whole xml given an xml document. | public static Tidy | getParser() Returns tidy as HTML parser. | public static boolean | isAnchorMatched(HTTPSamplerBase newLink, HTTPSamplerBase config) | public static boolean | isArgumentMatched(Argument arg, Argument patternArg) Arguments match if the input name matches the corresponding pattern name
and the input value matches the pattern value, where the matching is done
first using String equals, and then Regular Expression matching if the equals test fails. | public static boolean | isEqualOrMatches(String arg, String pat, Perl5Matcher matcher, PatternCacheLRU cache) Match the input argument against the pattern using String.equals() or pattern matching if that fails. | public static boolean | isEqualOrMatches(String arg, String pat) Match the input argument against the pattern using String.equals() or pattern matching if that fails
using case-insensitive matching. | public static boolean | isEqualOrMatchesCaseBlind(String arg, String pat, Perl5Matcher matcher, PatternCacheLRU cache) Match the input argument against the pattern using String.equals() or pattern matching if that fails
using case-insenssitive matching. | public static boolean | isEqualOrMatchesCaseBlind(String arg, String pat) Match the input argument against the pattern using String.equals() or pattern matching if that fails
using case-insensitive matching. |
createUrlFromAnchor | public static HTTPSamplerBase createUrlFromAnchor(String parsedUrlString, URL context) throws MalformedURLException(Code) | | Create a new Sampler 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.
|
getDOM | public static Node getDOM(String text)(Code) | | Returns a node representing a whole xml given an xml document.
Parameters: text - an xml document a node representing a whole xml |
getParser | public static Tidy getParser()(Code) | | Returns tidy as HTML parser.
a tidy HTML parser |
isAnchorMatched | public static boolean isAnchorMatched(HTTPSamplerBase newLink, HTTPSamplerBase config)(Code) | | Check if anchor matches by checking against:
- protocol
- domain
- path
- parameter names
Parameters: newLink - target to match Parameters: config - pattern to match against true if target URL matches pattern URL |
isArgumentMatched | public static boolean isArgumentMatched(Argument arg, Argument patternArg)(Code) | | Arguments match if the input name matches the corresponding pattern name
and the input value matches the pattern value, where the matching is done
first using String equals, and then Regular Expression matching if the equals test fails.
Parameters: arg - - input Argument Parameters: patternArg - - pattern to match against true if both name and value match |
isEqualOrMatches | public static boolean isEqualOrMatches(String arg, String pat, Perl5Matcher matcher, PatternCacheLRU cache)(Code) | | Match the input argument against the pattern using String.equals() or pattern matching if that fails.
Parameters: arg - input string Parameters: pat - pattern string Parameters: matcher - Perl5Matcher Parameters: cache - PatternCache true if input matches the pattern |
isEqualOrMatches | public static boolean isEqualOrMatches(String arg, String pat)(Code) | | Match the input argument against the pattern using String.equals() or pattern matching if that fails
using case-insensitive matching.
Parameters: arg - input string Parameters: pat - pattern string true if input matches the pattern |
isEqualOrMatchesCaseBlind | public static boolean isEqualOrMatchesCaseBlind(String arg, String pat, Perl5Matcher matcher, PatternCacheLRU cache)(Code) | | Match the input argument against the pattern using String.equals() or pattern matching if that fails
using case-insenssitive matching.
Parameters: arg - input string Parameters: pat - pattern string Parameters: matcher - Perl5Matcher Parameters: cache - PatternCache true if input matches the pattern |
isEqualOrMatchesCaseBlind | public static boolean isEqualOrMatchesCaseBlind(String arg, String pat)(Code) | | Match the input argument against the pattern using String.equals() or pattern matching if that fails
using case-insensitive matching.
Parameters: arg - input string Parameters: pat - pattern string true if input matches the pattern |
|
|