edu.rice.rubis.servlets
Class StoreBid

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

public class StoreBid
extends RubisHttpServlet

This servlet records a bid in the database and display the result of the transaction. It must be called this way :

 http://..../StoreBid?itemId=aa&userId=bb&minBid=cc&maxQty=dd&bid=ee&maxBid=ff&qty=gg 
   where: aa is the item id 
          bb is the user id
          cc is the minimum acceptable bid for this item
          dd is the maximum quantity available for this item
          ee is the user bid
          ff is the maximum bid the user wants
          gg is the quantity asked by the user
 

Version:
1.0
Author:
Emmanuel Cecchet and Julie Marguerite

Constructor Summary
StoreBid()
           
 
Method Summary
 void destroy()
          Clean up the connection pool.
 void doGet(edu.rice.rubis.servlets.HttpServletRequest request, edu.rice.rubis.servlets.HttpServletResponse response)
          Call the doPost method.
 void doPost(edu.rice.rubis.servlets.HttpServletRequest request, edu.rice.rubis.servlets.HttpServletResponse response)
          Store the bid to the database and display resulting message.
 int getPoolSize()
           
 
Methods inherited from class edu.rice.rubis.servlets.RubisHttpServlet
closeConnection, finalizeConnections, getConnection, init, initializeConnections, releaseConnection
 

Constructor Detail

StoreBid

public StoreBid()
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
Call the doPost method.
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
Store the bid to the database and display resulting message.
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.