Project 4

cscie259.project4.scamazon
Class ECS

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

public class ECS
extends ScamazonServlet

This servlet implements a demonstration of Amazon's E-Commerce Service (ECS). Be sure to assign ECS.SUBSCRIPTION_ID the value of your own subscription ID. You MAY modify this file.

Version:
6.0
Author:
Computer Science E-259
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class cscie259.project4.scamazon.ScamazonServlet
ScamazonServlet.AnErrorListener, ScamazonServlet.myURIResolver
 
Field Summary
private static java.lang.String ISBNS
           
private static java.lang.String[] RESPONSE_GROUPS
           
private static java.lang.String SUBSCRIPTION_ID
           
 
Fields inherited from class javax.servlet.http.HttpServlet
 
Fields inherited from class javax.servlet.GenericServlet
 
Constructor Summary
ECS()
           
 
Method Summary
protected  void doWork(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Demonstrates ECS.
 
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
 

Field Detail

ISBNS

private static final java.lang.String ISBNS
See Also:
Constant Field Values

RESPONSE_GROUPS

private static final java.lang.String[] RESPONSE_GROUPS

SUBSCRIPTION_ID

private static final java.lang.String SUBSCRIPTION_ID
See Also:
Constant Field Values
Constructor Detail

ECS

public ECS()
Method Detail

doWork

protected void doWork(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
               throws javax.servlet.ServletException,
                      java.io.IOException
Demonstrates ECS.

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