* @see org.apache.jmeter.protocol.http.parser.HtmlParser#getEmbeddedResourceURLs(byte[], java.net.URL)
*/
public Iterator getEmbeddedResourceURLs(byte[] html, URL baseUrl, URLCollection urls)
throws HTMLParseException
{
Parser htmlParser= null;
try
{
String contents= new String(html);
StringReader reader= new StringReader(contents);
NodeReader nreader= new NodeReader(reader, contents.length());
htmlParser= new Parser(nreader, new DefaultParserFeedback());
addTagListeners(htmlParser);
}
catch (Exception e)
{
throw new HTMLParseException(e);
}
// Now parse the DOM tree
// look for applets
// This will only work with an Applet .class file.
// Ideally, this should be upgraded to work with Objects (IE)
// and archives (.jar and .zip) files as well.
try
{
// we start to iterate through the elements
for (NodeIterator e= htmlParser.elements(); e.hasMoreNodes();)
{
Node node= e.nextNode();
String binUrlStr= null;
// first we check to see if body tag has a