edu.rice.rubis.servlets
Class StoreBuyNow
edu.rice.rubis.servlets.RubisHttpServlet
|
+--edu.rice.rubis.servlets.StoreBuyNow
- public class StoreBuyNow
- extends RubisHttpServlet
This servlet records a BuyNow in the database and display
the result of the transaction.
It must be called this way :
http://..../StoreBuyNow?itemId=aa&userId=bb&minBuyNow=cc&maxQty=dd&BuyNow=ee&maxBuyNow=ff&qty=gg
where: aa is the item id
bb is the user id
cc is the minimum acceptable BuyNow for this item
dd is the maximum quantity available for this item
ee is the user BuyNow
ff is the maximum BuyNow the user wants
gg is the quantity asked by the user
- Version:
- 1.0
- Author:
- Emmanuel Cecchet and Julie Marguerite
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 BuyNow to the database and display resulting message. |
int |
getPoolSize()
|
StoreBuyNow
public StoreBuyNow()
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
valueresponse
- a HttpServletResponse
value- Throws:
java.io.IOException
- if an error occursedu.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 BuyNow to the database and display resulting message.
- Overrides:
doPost
in class RubisHttpServlet
- Parameters:
request
- a HttpServletRequest
valueresponse
- a HttpServletResponse
value- Throws:
java.io.IOException
- if an error occursedu.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.