⇒ Index (Frames) | ⇒ Index (No Frames) | ⇒ Package | ⇒ Package Tree | ⇒ Full Tree 
com.tildemh.debbug

Class WWWBugParser

java.lang.Object|
+--com.tildemh.debbug.WWWBugParser


publicclass WWWBugParser
extends java.lang.Object

Gets bug reports in html format from bugs.debian.org and regexp's them to our needs. This is (hopefully) only a temporary measure - Once the significance of this library are apps which use it is known, we will try to convince the bts maintainer to adopt a more friendly way fo working.

This is released under the terms of the GNU Lesser General Public License (LGPL). See the COPYING file for details.

Author:
© Mark Howard <mh@debian.org> 2002

Field Summary

static boolean

DEBUG

Gets bug reports in html format from bugs.debian.org and regexp's them to our needs.

Method Summary

static boolean

checkModified(Bug bug)

Determines whether a bug has been modified, by looking at the Last-Modified header of bugreport.cgi, when using HTTP head.

static Date

convertDate(String date)

Converts a date, as usually found on the current output from debbugs.

static void

downloadBug(String number,Bug bug,boolean verbose)

Downloads a bug from bugs.debian.org.

static void

makeBug(String htmlPage,Bug bug)

Constructs a bug from a html page from bugs.debian.org

Field Details

DEBUG

publicstatic final booleanDEBUG

Gets bug reports in html format from bugs.debian.org and regexp's them to our needs. This is (hopefully) only a temporary measure - Once the significance of this library are apps which use it is known, we will try to convince the bts maintainer to adopt a more friendly way fo working.

This is released under the terms of the GNU Lesser General Public License (LGPL). See the COPYING file for details.

Author:
© Mark Howard <mh@debian.org> 2002

Method Details

checkModified

publicstatic booleancheckModified(Bug bug)

Determines whether a bug has been modified, by looking at the Last-Modified header of bugreport.cgi, when using HTTP head.

Parameters:
bug - the bug number to test

convertDate

publicstatic DateconvertDate(String date)

Converts a date, as usually found on the current output from debbugs. Can't wait for debbugs 2.0.

Parameters:
date

downloadBug

publicstatic voiddownloadBug(String number,Bug bug,boolean verbose)

Downloads a bug from bugs.debian.org.

Parameters:
number
bug
verbose

makeBug

publicstatic voidmakeBug(String htmlPage,Bug bug)

Constructs a bug from a html page from bugs.debian.org

Parameters:
htmlPage
bug