Project 4

cscie259.project4.scamazon
Class Cart

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bycscie259.project4.scamazon.ScamazonServlet
              extended bycscie259.project4.scamazon.Cart
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class Cart
extends ScamazonServlet

This servlet implements Scamazon.com's shopping cart. Any references to the local file system are resolved with respect to project4-6.0/webapps/scamazon/, per ScamazonServlet's implementation of javax.xml.transform.URIResolver.

You MUST modify this file.

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

Nested Class Summary
 
Nested classes inherited from class cscie259.project4.scamazon.ScamazonServlet
ScamazonServlet.AnErrorListener, ScamazonServlet.myURIResolver
 
Field Summary
 
Fields inherited from class javax.servlet.http.HttpServlet
 
Fields inherited from class javax.servlet.GenericServlet
 
Constructor Summary
Cart()
           
 
Method Summary
protected  void doWork(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Handles operations involving the shopping cart.
 
Methods inherited from class cscie259.project4.scamazon.ScamazonServlet
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, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cart

public Cart()
Method Detail

doWork

protected void doWork(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
               throws java.io.IOException,
                      javax.servlet.ServletException
Handles operations involving the shopping cart.

Specified by:
doWork in class ScamazonServlet
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

Project 4