Class BugTrackerServlet
java.lang.Object
|
+--javax.servlet.GenericServlet
|
+--javax.servlet.http.HttpServlet
|
+--BugTrackerServlet
- public class BugTrackerServlet
- extends javax.servlet.http.HttpServlet
Servlet that provides a Web-based interface to the BugTracker application
- See Also:
- Serialized Form
Method Summary |
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
This method receives all POST requests. |
java.lang.String |
getServletInfo()
|
void |
handleBadRequest(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Handler routine for bad/invalid Post requests |
void |
handleQuery(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Handle the post method from the finddefect.html form. |
void |
handleSubmit(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Handle the post method from the submitdefectreport.html form. |
void |
init(javax.servlet.ServletConfig config)
init method sets up the applet by initializing the ORB and getting
references to the BugTracker server resources. |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete,
doGet,
doOptions,
doPut,
doTrace,
getLastModified,
service,
service |
Methods inherited from class javax.servlet.GenericServlet |
destroy,
getInitParameter,
getInitParameterNames,
getServletConfig,
getServletContext,
log |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
BugTrackerServlet
public BugTrackerServlet()
init
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
- init method sets up the applet by initializing the ORB and getting
references to the BugTracker server resources.
- Overrides:
- init in class javax.servlet.GenericServlet
doPost
public void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
- This method receives all POST requests. This is a dispatcher method
that routes the request to the appropriate method, based on the type
of request as identified in the parameters sent.
- Parameters:
req
- the request objectresp
- the response object- Overrides:
- doPost in class javax.servlet.http.HttpServlet
handleQuery
public void handleQuery(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
- Handle the post method from the finddefect.html form. Called as a
dispatch method of doPost.
The form provides the following fields
defectid : the defect id to look up
format : either "html" or "xml"
handleSubmit
public void handleSubmit(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
- Handle the post method from the submitdefectreport.html form. That form
provides the following fields that must be read here, and formulated into
a defect:
defectsummary : use value in DefectIntf.setDefectSummary
defectdetails : the user's description of the problem
name : these items will be formatted and concatenated into the
fax defect details
phone
company
email
productid
notifyonresolve : if this comes back true, then the email address
value will be sent to the DefectIntf.setResolvedMailList method
product : use value in DefectIntf.setProduct
version : use value in DefectIntf.setVersionReported
handleBadRequest
public void handleBadRequest(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
- Handler routine for bad/invalid Post requests
getServletInfo
public java.lang.String getServletInfo()
- Overrides:
- getServletInfo in class javax.servlet.GenericServlet