net.sf.ginp
Class GinpServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
net.sf.ginp.GinpServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class GinpServlet
- extends javax.servlet.http.HttpServlet
The Controller servlet of the Model View Controller Architecture.
- Version:
- $Revision: 306 $
- Author:
- Doug Culnane, Justin Sher
- See Also:
- Serialized Form
Method Summary |
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Called by HTTP GET, feeds doHttpMethod. |
void |
doHttpMethod(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Central Processor of HTTP Methods. |
void |
doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Called by HTTP POST, feeds doHttpMethod. |
void |
init()
|
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GinpServlet
public GinpServlet()
init
public void init()
- Overrides:
init
in class javax.servlet.GenericServlet
doGet
public void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws java.io.IOException
- Called by HTTP GET, feeds doHttpMethod.
- Overrides:
doGet
in class javax.servlet.http.HttpServlet
- Parameters:
req
- HTTP GET Requestres
- HTTP Response
- Throws:
java.io.IOException
- Description of the Exception
doPost
public void doPost(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws java.io.IOException
- Called by HTTP POST, feeds doHttpMethod.
- Overrides:
doPost
in class javax.servlet.http.HttpServlet
- Parameters:
req
- HTTP POST Requestres
- HTTP Response
- Throws:
java.io.IOException
- Description of the Exception
doHttpMethod
public void doHttpMethod(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws java.io.IOException
- Central Processor of HTTP Methods. This method gets the model for the
users session, extracts the Command Parameters and preforms the command
specified in the request. It then redirects or if cookies are used
forwards the response to the JSP govened by the new state. If a
significant error occurs it should be throwned up to here so that a
debug page can be displayed. If a user sees a debug page then that is
bad so lets try to find out about it and so we can fix it.
- Parameters:
req
- HTTP Requestres
- HTTP Response
- Throws:
java.io.IOException
- Description of the Exception
Copyright © 2004-2007 null. All Rights Reserved.