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
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()
|
BuyNow
public BuyNow()
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
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
- Call the doGet method
- 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.