Menu

Feedback Mechanism

Help
David B.
2006-07-19
2013-04-27
  • David B.

    David B. - 2006-07-19

    Is the feedback mechanism fully implemented?

    I've tried implementing my own ParserFeedback without any luck. Even the following doesn't generate any feedback:

    Parser parser = new Parser("http://www.yahoo.com");
                parser.setFeedback(new DefaultParserFeedback(DefaultParserFeedback.DEBUG));

    Am I missing something regarding the use of the feedback facility.

    Thanks.

     
    • Derrick Oswald

      Derrick Oswald - 2006-07-24

      That should work.
      You may not be triggering any feedback (there isn't a whole lot of verbiage).
      The same feedback utility is used to display the HTTP traffic for the parser via info():

      $ bin/parser http://cbc.ca
      INFO: GET http://cbc.ca HTTP/1.1
      User-Agent: HTMLParser/1.6
      Accept-Encoding: gzip, deflate

      INFO: HTTP/1.1 302 Found
      Date: Mon, 24 Jul 2006 03:29:47 GMT
      Server: Apache/1.3.29 (Linux/SUSE) mod_gzip/1.3.26.1a mod_jk/1.2.6-dev
      Location: http://www.cbc.ca/
      Keep-Alive: timeout=15, max=100
      Connection: Keep-Alive
      Transfer-Encoding: chunked
      Content-Type: text/html; charset=iso-8859-1

      INFO: GET http://www.cbc.ca/ HTTP/1.1
      User-Agent: HTMLParser/1.6
      Accept-Encoding: gzip, deflate

      INFO: HTTP/1.1 200 OK
      Server: Apache/1.3.29 (Linux/SUSE) mod_gzip/1.3.26.1a mod_jk/1.2.6-dev
      Content-Type: text/html
      Expires: Mon, 24 Jul 2006 03:29:47 GMT
      Date: Mon, 24 Jul 2006 03:29:47 GMT
      Transfer-Encoding: chunked
      Connection: keep-alive
      Connection: Transfer-Encoding
      Set-Cookie: Webtrends=209.123.81.157.119141153711787300; path=/; expires=Sat, 20-Jan-07 03:29:47 GMT

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.