|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectHttpServlet
net.sourceforge.pebble.web.controller.HttpController
public class HttpController
An implementation of the front controller pattern, using the command and controller strategy.
Constructor Summary | |
---|---|
HttpController()
|
Method Summary | |
---|---|
protected void |
doGet(HttpServletRequest req,
HttpServletResponse res)
A default implementation of doGet that delegates to the processRequest method. |
protected void |
doPost(HttpServletRequest req,
HttpServletResponse res)
A default implementation of doPost that delegates to the processRequest method. |
void |
init()
Initialises this instance. |
protected void |
processRequest(HttpServletRequest request,
HttpServletResponse response)
Processes the request - this is delegated to from doGet and doPost. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpController()
Method Detail |
---|
public void init()
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, java.io.IOException
request
- the HttpServletRequest instanceresponse
- the HttpServletResponse instance
ServletException
java.io.IOException
protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, java.io.IOException
req
- the HttpServletRequest instanceres
- the HttpServletResponse instance
ServletException
java.io.IOException
protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, java.io.IOException
req
- the HttpServletRequest instanceres
- the HttpServletResponse instance
ServletException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |