|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jmeter.protocol.http.parser.HtmlParsingUtils
public final class HtmlParsingUtils
Method Summary | |
---|---|
static Document |
createEmptyDoc()
|
static HTTPSamplerBase |
createUrlFromAnchor(String parsedUrlString,
URL context)
Create a new Sampler based on an HREF string plus a contextual URL object. |
static List<HTTPSamplerBase> |
createURLFromForm(Node doc,
URL context)
|
static void |
extractStyleURLs(URL baseUrl,
URLCollection urls,
String styleTagStr)
|
static 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)
Check if anchor matches by checking against: - protocol - domain - path - parameter names |
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. |
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. |
static boolean |
isEqualOrMatches(String arg,
String pat,
org.apache.oro.text.regex.Perl5Matcher matcher,
org.apache.oro.text.PatternCacheLRU cache)
Match the input argument against the pattern using String.equals() or pattern matching if that fails. |
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. |
static boolean |
isEqualOrMatchesCaseBlind(String arg,
String pat,
org.apache.oro.text.regex.Perl5Matcher matcher,
org.apache.oro.text.PatternCacheLRU cache)
Match the input argument against the pattern using String.equals() or pattern matching if that fails using case-insenssitive matching. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean isAnchorMatched(HTTPSamplerBase newLink, HTTPSamplerBase config)
newLink
- target to matchconfig
- pattern to match against
public static boolean isArgumentMatched(Argument arg, Argument patternArg)
arg
- - input ArgumentpatternArg
- - pattern to match against
public static boolean isEqualOrMatches(String arg, String pat, org.apache.oro.text.regex.Perl5Matcher matcher, org.apache.oro.text.PatternCacheLRU cache)
arg
- input stringpat
- pattern stringmatcher
- Perl5Matchercache
- PatternCache
public static boolean isEqualOrMatchesCaseBlind(String arg, String pat, org.apache.oro.text.regex.Perl5Matcher matcher, org.apache.oro.text.PatternCacheLRU cache)
arg
- input stringpat
- pattern stringmatcher
- Perl5Matchercache
- PatternCache
public static boolean isEqualOrMatches(String arg, String pat)
arg
- input stringpat
- pattern string
public static boolean isEqualOrMatchesCaseBlind(String arg, String pat)
arg
- input stringpat
- pattern string
public static org.w3c.tidy.Tidy getParser()
tidy
as HTML parser.
tidy
HTML parserpublic static Node getDOM(String text)
text
- an xml document
public static Document createEmptyDoc()
public static HTTPSamplerBase createUrlFromAnchor(String parsedUrlString, URL context) throws MalformedURLException
MalformedURLException
public static List<HTTPSamplerBase> createURLFromForm(Node doc, URL context)
public static void extractStyleURLs(URL baseUrl, URLCollection urls, String styleTagStr)
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |