ch3.reorganised
Class HelperBase

java.lang.Object
  extended by ch3.reorganised.HelperBase
Direct Known Subclasses:
ControllerHelper

public class HelperBase
extends java.lang.Object

This is the base class that contains the member variables and helper methods for objects that use the same class for all controllers.

The request and response objects use the same classes for all controllers, so the member variables belong in the base class. The bean is an example of a class that can be different for each controller, so it does not belong in the base class.


Field Summary
protected  javax.servlet.http.HttpServletRequest request
          Member variabel that stores the request object.
protected  javax.servlet.http.HttpServletResponse response
          Member variable that stores the response object.
 
Constructor Summary
HelperBase(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Initialise the request and response objects.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

request

protected javax.servlet.http.HttpServletRequest request
Member variabel that stores the request object.


response

protected javax.servlet.http.HttpServletResponse response
Member variable that stores the response object.

Constructor Detail

HelperBase

public HelperBase(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
Initialise the request and response objects.

Parameters:
request - Request information encapsulated in a Java object
response - Response information encapsulated in a Java object