org.davesag.generica.controller
Class AbstractController

java.lang.Object
  extended byorg.davesag.generica.controller.AbstractController
All Implemented Interfaces:
Controller
Direct Known Subclasses:
AbstractActionController

public abstract class AbstractController
extends Object
implements Controller

The AbstractController is the root class for all controllers.

Since:
Generica 1.0
Version:
CVS Revision $Id: AbstractController.java,v 1.4 2004/03/30 13:00:40 davesag Exp $
Author:
Dave Sag http://www.davesag.com

Field Summary
protected  ActionForm theForm
          the ActionForm
protected  HttpServletRequest theRequest
          the request
protected  HttpServletResponse theResponse
          the request
protected  HttpSession theSession
          the session
 
Constructor Summary
AbstractController()
          Creates a new AbstractController object.
 
Method Summary
 ServletContext getApplication()
          get the web application.
 ActionForm getForm()
          get the form bean.
 Locale getLocale()
          get the current active locale.
 HttpServletRequest getRequest()
          get the Request.
 HttpServletResponse getResponse()
          get the response.
 HttpSession getSession()
          get the http session.
 void setForm(ActionForm form)
          Sets the struts action form.
 void setRequest(HttpServletRequest request)
          Sets the servlet request.
 void setResponse(HttpServletResponse response)
          Sets the servlet response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theRequest

protected HttpServletRequest theRequest
the request


theResponse

protected HttpServletResponse theResponse
the request


theSession

protected HttpSession theSession
the session


theForm

protected ActionForm theForm
the ActionForm

Constructor Detail

AbstractController

public AbstractController()
Creates a new AbstractController object.

Method Detail

setRequest

public void setRequest(HttpServletRequest request)
Sets the servlet request.

Specified by:
setRequest in interface Controller
Parameters:
request - The incoming request.

setResponse

public void setResponse(HttpServletResponse response)
Sets the servlet response.

Specified by:
setResponse in interface Controller
Parameters:
response - The incoming request.

setForm

public void setForm(ActionForm form)
Sets the struts action form.

Specified by:
setForm in interface Controller
Parameters:
form - The form.

getRequest

public HttpServletRequest getRequest()
get the Request.

Returns:
the HttpRequest.

getResponse

public HttpServletResponse getResponse()
get the response.

Returns:
the HttpResponse.

getSession

public HttpSession getSession()
get the http session.

Returns:
the Http Session.

getForm

public ActionForm getForm()
get the form bean.

Returns:
the struts action form.

getApplication

public ServletContext getApplication()
get the web application.

Returns:
The Web Application itself.

getLocale

public Locale getLocale()
get the current active locale.

Returns:
The current active locale.


Dave Sag Generica API version 0.5.9 - (prerelease) Copyright 2003 - 2004 Dave Sag.