Project 3

cscie259.project3.wahoo
Class Prefs

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by cscie259.project3.wahoo.WahooServlet
              extended by cscie259.project3.wahoo.Prefs
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class Prefs
extends WahooServlet

This servlet displays personalized preferences in the Wahoo portal. You MUST modify this file.

Version:
8.0
Author:
Computer Science E-259, YOUR NAME GOES HERE
See Also:
Serialized Form

Field Summary
private  java.lang.String categoriesXML_
          a cached copy of the categories XML file
 
Constructor Summary
Prefs()
           
 
Method Summary
 void doWork(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Displays and processes the preferences form; if user attempts to execute this servlet before user's authenticated (via the login servlet), should redirect user to login servlet.
 void init()
          Called automatically by servlet container; initializes the servlet and the categories list.
 
Methods inherited from class cscie259.project3.wahoo.WahooServlet
doGet, doPost, forward, redirect
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

categoriesXML_

private java.lang.String categoriesXML_
a cached copy of the categories XML file

Constructor Detail

Prefs

public Prefs()
Method Detail

doWork

public void doWork(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
            throws java.io.IOException,
                   javax.servlet.ServletException
Displays and processes the preferences form; if user attempts to execute this servlet before user's authenticated (via the login servlet), should redirect user to login servlet.

Specified by:
doWork in class WahooServlet
Parameters:
request - HTTP request object
response - HTTP response object
Throws:
java.io.IOException - if an IO-related error occurs
javax.servlet.ServletException - if a servlet-related error occurs

init

public void init()
          throws javax.servlet.ServletException
Called automatically by servlet container; initializes the servlet and the categories list.

Overrides:
init in class WahooServlet
Throws:
javax.servlet.ServletException - if a servlet-related error occurs

Project 3