Class CssParser
java.lang.Object
org.apache.jmeter.protocol.http.parser.CssParser
- All Implemented Interfaces:
- LinkExtractorParser
CSS Parser used to extract from CSS files external urls
- Since:
- 3.0
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetEmbeddedResourceURLs(String userAgent, byte[] data, URL baseUrl, String encoding) Get the URLs for all the resources that a browser would automatically download following the download of the content, that is: images, stylesheets, javascript files, applets, etc...boolean
- 
Constructor Details- 
CssParserpublic CssParser()
 
- 
- 
Method Details- 
getEmbeddedResourceURLspublic Iterator<URL> getEmbeddedResourceURLs(String userAgent, byte[] data, URL baseUrl, String encoding) throws LinkExtractorParseException Description copied from interface:LinkExtractorParserGet the URLs for all the resources that a browser would automatically download following the download of the content, that is: images, stylesheets, javascript files, applets, etc...URLs should not appear twice in the returned iterator. 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. - Specified by:
- getEmbeddedResourceURLsin interface- LinkExtractorParser
- Parameters:
- userAgent- User Agent
- data- Response data
- baseUrl- Base URL from which the HTML code was obtained
- encoding- Charset
- Returns:
- an Iterator for the resource URLs
- Throws:
- LinkExtractorParseException- when extracting the links fails
- See Also:
 
- 
isReusablepublic boolean isReusable()- Specified by:
- isReusablein interface- LinkExtractorParser
 
 
-