org.locomotive.module.btrack
Class BugTrackerHandler

java.lang.Object
  |
  +--org.locomotive.loco.handler.GenericHandler
        |
        +--org.locomotive.module.btrack.BugTrackerHandler

public class BugTrackerHandler
extends GenericHandler

BugTracker is a bug tracking system that allows the creation and editing of projects and bugs associated with them. You can list or edit the projects or the bugs. Listing the bugs allows filtering and per-package display.


 All comands here are preceded by "btrack?":

 URL format (# = integer)    Command
 ----------------------------------------------------------------------------

 (nothing)                   i.e. "btrack" - go to main page
 listbugs                    go to bug-listing filter page
 listbugs+#                  # = project id for which to list bugs
 listbugs+all                list all bugs in the system
 listprojects                list all projects in the system
 edit+project+#              # = project id to edit
 edit+project+#              this is also the url to use to submit the
                               editing form from the project edit page
 new+project                 create a new project
 new+bug                     create a new bug
 edit+bug+#                  # = bug id to edit
 edit+bug+#                  this is also the url to use to submit the
                               editing form from the bug edit page
 gen+S                       S = name of generic ("static") page
                                 to show
 


Fields inherited from class org.locomotive.loco.handler.GenericHandler
already_displayed_page, conn, DEBUG, ERROR, form_data, handler_uri, hd, NORMAL, session, steam_vars, url_tokens, user, WARNING
 
Constructor Summary
BugTrackerHandler()
           
 
Method Summary
protected  void handleCreate()
          Called to handle any URLs of the form "btrack?create+...
protected  void handleEdit()
          Called to handle any URLs of the form "btrack?edit+...
protected  void handleListBugs()
          Lists bugs.
protected  void handleListProjects()
          display to the client the list of all the projects.
 void handleRequest(HandlerData hd)
          This entry point is called by RequestManager for each new request.
 
Methods inherited from class org.locomotive.loco.handler.GenericHandler
displayPage, displayString, handleException, init, log, logEvent, sayBadURL, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BugTrackerHandler

public BugTrackerHandler()
Method Detail

handleRequest

public void handleRequest(HandlerData hd)
This entry point is called by RequestManager for each new request. This basically figures out what the user wants and passes off to handleEdit(), handleListBugs(), or handleListProjects(), where the real work happens.
Overrides:
handleRequest in class GenericHandler

handleEdit

protected void handleEdit()
Called to handle any URLs of the form "btrack?edit+... " - will parse it out, figure out what the user wants, return appropriate errors, etc.

handleCreate

protected void handleCreate()
Called to handle any URLs of the form "btrack?create+... " - will parse it out, figure out what the user wants, return appropriate errors, etc.

handleListBugs

protected void handleListBugs()
Lists bugs. Will determine from the url what the user is looking to do and send them on their way through the method calls.

handleListProjects

protected void handleListProjects()
display to the client the list of all the projects. See how short this function is? It shows you what utility functions can do for you.