edu.rice.rubis.servlets
Class BuyNow

edu.rice.rubis.servlets.RubisHttpServlet
  |
  +--edu.rice.rubis.servlets.BuyNow

public class BuyNow
extends RubisHttpServlet

This servlets display the page allowing a user to buy an item It must be called this way :

 http://..../BuyNow?itemId=xx&nickname=yy&password=zz
    where xx is the id of the item
          yy is the nick name of the user
          zz is the user password
 

Version:
1.0
Author:
Emmanuel Cecchet and Julie Marguerite

Constructor Summary
BuyNow()
           
 
Method Summary
 void destroy()
          Clean up the connection pool.
 void doGet(edu.rice.rubis.servlets.HttpServletRequest request, edu.rice.rubis.servlets.HttpServletResponse response)
          Authenticate the user and end the display a buy now form
 void doPost(edu.rice.rubis.servlets.HttpServletRequest request, edu.rice.rubis.servlets.HttpServletResponse response)
          Call the doGet method
 int getPoolSize()
           
 
Methods inherited from class edu.rice.rubis.servlets.RubisHttpServlet
closeConnection, finalizeConnections, getConnection, init, initializeConnections, releaseConnection
 

Constructor Detail

BuyNow

public BuyNow()
Method Detail

getPoolSize

public int getPoolSize()
Overrides:
getPoolSize in class RubisHttpServlet

doGet

public void doGet(edu.rice.rubis.servlets.HttpServletRequest request,
                  edu.rice.rubis.servlets.HttpServletResponse response)
           throws java.io.IOException,
                  edu.rice.rubis.servlets.ServletException
Authenticate the user and end the display a buy now form
Overrides:
doGet in class RubisHttpServlet
Parameters:
request - a HttpServletRequest value
response - a HttpServletResponse value
Throws:
java.io.IOException - if an error occurs
edu.rice.rubis.servlets.ServletException - if an error occurs

doPost

public void doPost(edu.rice.rubis.servlets.HttpServletRequest request,
                   edu.rice.rubis.servlets.HttpServletResponse response)
            throws java.io.IOException,
                   edu.rice.rubis.servlets.ServletException
Call the doGet method
Overrides:
doPost in class RubisHttpServlet
Parameters:
request - a HttpServletRequest value
response - a HttpServletResponse value
Throws:
java.io.IOException - if an error occurs
edu.rice.rubis.servlets.ServletException - if an error occurs

destroy

public void destroy()
Clean up the connection pool.
Overrides:
destroy in class RubisHttpServlet


Copyright © 2003 - ObjectWeb Consortium - All Rights Reserved.