|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.talika.tarsis.servlets.AbstractServlet
org.talika.tarsis.servlets.ControllerServlet
Implementation of controller servlet of Tarsis MVC Framework.
| Constructor Summary | |
|---|---|
ControllerServlet()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Called by the servlet container to indicate to a servlet that the servlet is being taken out of service. |
protected Command |
findCommand(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Obtains command from client's request. |
void |
init(javax.servlet.ServletConfig config)
Called by the servlet container to indicate to a servlet that the servlet is being placed into service. |
protected void |
process(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Processes requests for both HTTP GET and POST methods. |
protected View |
processCommand(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Command command)
Process given command. |
protected void |
processView(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
View view)
Process given view. |
| Methods inherited from class org.talika.tarsis.servlets.AbstractServlet |
|---|
doGet, doPost, getContext, getLogger, getServletInfo |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ControllerServlet()
| Method Detail |
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init method and storing
in a local variable command factory instance for further use.
init in interface javax.servlet.Servletinit in class AbstractServletconfig - ServletConfig the ServletConfig object that contains
configutation information for this servlet.
javax.servlet.ServletException - if an exception occurs that interrupts the servlet's
normal operation.Servlet.init(javax.servlet.ServletConfig)public void destroy()
destroy in interface javax.servlet.Servletdestroy in class AbstractServletServlet.destroy()
protected void process(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
execute method.
process in class AbstractServletrequest - servlet object that contains the request the client has made of
the servlet.response - servlet object that contains the response the servlet sends to
the client.
javax.servlet.ServletException - if the request could not be handled.
java.io.IOException - if an input or output error is detected when the servlet
handles request.
protected Command findCommand(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws SystemException
request - HttpServletRequest client's request.response - HttpServletResponse client's response.
SystemException - if no command is found.
protected View processCommand(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Command command)
throws ActionException,
SystemException
request - HttpServletRequest client's request.response - HttpServletResponse client's reponse.command - Command command to be processed.
ActionException - if there is a problem executing action.
SystemException - if no view is found.
protected void processView(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
View view)
throws SystemException,
javax.servlet.ServletException,
java.io.IOException
request - HttpServletRequest client's request.response - HttpServletResponse client's reponse.view - View view to be processed.
SystemException - if view's type is unkown.
javax.servlet.ServletException - if the request could not be handled.
java.io.IOException - if an input or output error is detected when the servlet
handles request.
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||