ch7.catalogAddress
Class ControllerHelper
java.lang.Object
shared.HelperBaseCh4
shared.HelperBaseCh5
shared.HelperBaseCh6
ch7.catalogAddress.ControllerHelper
public class ControllerHelper
- extends HelperBaseCh6
|
Constructor Summary |
ControllerHelper(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
data
protected RequestDataAddress data
ControllerHelper
public ControllerHelper(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
initHibernate
public static void initHibernate(boolean create)
getData
public java.lang.Object getData()
getItem
public java.lang.Object getItem()
getCart
public java.lang.Object getCart()
copyFromSession
public void copyFromSession(java.lang.Object sessionHelper)
- Description copied from class:
HelperBaseCh4
- Abstract method that must be defined in the controller helper. The base
class calls this method when it needs to know how to copy the old helper
data that is in the session into the current helper.
- Specified by:
copyFromSession in class HelperBaseCh4
- Parameters:
sessionHelper - The old helper from the session
jspLocation
public java.lang.String jspLocation(java.lang.String page)
methodDefault
public java.lang.String methodDefault()
methodAddCart
public java.lang.String methodAddCart()
methodEmptyCart
public java.lang.String methodEmptyCart()
methodViewItem
public java.lang.String methodViewItem()
methodViewCart
public java.lang.String methodViewCart()
methodProcessCart
public java.lang.String methodProcessCart()
editMethod
public java.lang.String editMethod()
confirmMethod
public java.lang.String confirmMethod()
processMethod
public java.lang.String processMethod()
doGet
protected void doGet()
throws java.io.IOException,
javax.servlet.ServletException
- Description copied from class:
HelperBaseCh4
- Default doGet method that prints a warning message, if called.
- Overrides:
doGet in class HelperBaseCh4
- Throws:
java.io.IOException
javax.servlet.ServletException
doPost
protected void doPost()
throws javax.servlet.ServletException,
java.io.IOException
- Handles the HTTP
POST method.
- Overrides:
doPost in class HelperBaseCh4
- Parameters:
request - servlet requestresponse - servlet response
- Throws:
javax.servlet.ServletException
java.io.IOException