|
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.HTMLParser org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser
public class LagartoBasedHtmlParser
Parser based on Lagarto
Field Summary |
---|
Fields inherited from class org.apache.jmeter.protocol.http.parser.HTMLParser |
---|
ATT_BACKGROUND, ATT_CODE, ATT_CODEBASE, ATT_DATA, ATT_HREF, ATT_IS_IMAGE, ATT_REL, ATT_SRC, ATT_STYLE, ATT_TYPE, DEFAULT_PARSER, PARSER_CLASSNAME, STYLESHEET, TAG_APPLET, TAG_BASE, TAG_BGSOUND, TAG_BODY, TAG_EMBED, TAG_FRAME, TAG_IFRAME, TAG_IMAGE, TAG_INPUT, TAG_LINK, TAG_OBJECT, TAG_SCRIPT |
Constructor Summary | |
---|---|
LagartoBasedHtmlParser()
|
Method Summary | |
---|---|
Iterator<URL> |
getEmbeddedResourceURLs(byte[] html,
URL baseUrl,
URLCollection coll,
String encoding)
Get the URLs for all the resources that a browser would automatically download following the download of the HTML content, that is: images, stylesheets, javascript files, applets, etc... |
protected boolean |
isReusable()
Parsers should over-ride this method if the parser class is re-usable, in which case the class will be cached for the next getParser() call. |
Methods inherited from class org.apache.jmeter.protocol.http.parser.HTMLParser |
---|
getEmbeddedResourceURLs, getEmbeddedResourceURLs, getParser, getParser |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LagartoBasedHtmlParser()
Method Detail |
---|
public Iterator<URL> getEmbeddedResourceURLs(byte[] html, URL baseUrl, URLCollection coll, String encoding) throws HTMLParseException
HTMLParser
All URLs should be added to the Collection.
Malformed URLs can be reported to the caller by having the Iterator return the corresponding RL String. Overall problems parsing the html should be reported by throwing an HTMLParseException. N.B. The Iterator returns URLs, but the Collection will contain objects of class URLString.
getEmbeddedResourceURLs
in class HTMLParser
html
- HTML codebaseUrl
- Base URL from which the HTML code was obtainedcoll
- URLCollectionencoding
- Charset
HTMLParseException
protected boolean isReusable()
HTMLParser
isReusable
in class HTMLParser
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |