org.owasp.webscarab.parser
Class HTMLParser

java.lang.Object
  extended by org.owasp.webscarab.parser.HTMLParser
All Implemented Interfaces:
ContentParser

public class HTMLParser
extends java.lang.Object
implements ContentParser

parses HTML messages

Author:
knoppix

Constructor Summary
HTMLParser()
          Creates a new instance of HTMLParser
 
Method Summary
 java.lang.Object parseMessage(HttpUrl url, Message message)
          parses the body of the message, and returns a parsed representation See http://htmlparser.sourceforge.net/ for details
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLParser

public HTMLParser()
Creates a new instance of HTMLParser

Method Detail

parseMessage

public java.lang.Object parseMessage(HttpUrl url,
                                     Message message)
parses the body of the message, and returns a parsed representation See http://htmlparser.sourceforge.net/ for details

Specified by:
parseMessage in interface ContentParser
Parameters:
url - the url that the message resulted from
message - the Message to parse
Returns:
a NodeList containing the various Nodes making up the page