|
||||||||||
| 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.codehaus.waffle.servlet.WaffleServlet
public class WaffleServlet
Waffle's FrontController for handling user requests.
| Constructor Summary | |
|---|---|
WaffleServlet()
Default constructor used by servlet container |
|
WaffleServlet(ActionMethodExecutor actionMethodExecutor,
ActionMethodResponseHandler actionMethodResponseHandler,
ServletMonitor servletMonitor,
ControllerDataBinder controllerDataBinder,
ControllerDefinitionFactory controllerDefinitionFactory,
MessageResources messageResources,
ViewDataBinder viewDataBinder,
ViewResolver viewResolver,
Validator validator)
Constructor required by builder and useful for testing |
|
| Method Summary | |
|---|---|
protected View |
buildActionMethodFailureView(ControllerDefinition controllerDefinition)
Builds the view for action method failures, by default the referring view. |
protected View |
buildErrorsView()
Builds the errors view, for cases in which the context container or the controller are not found. |
protected View |
buildRedirectingView(javax.servlet.http.HttpServletRequest request,
ControllerDefinition controllerDefinition)
Build redirecting view, used by PRG paradigm. |
protected View |
buildView(ControllerDefinition controllerDefinition)
Build a view back to the referring page, using the Controller's name as the View name. |
protected void |
configureViewProperties()
|
void |
init()
|
protected void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Responsible for servicing the requests from the users. |
java.lang.String |
toString()
|
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, 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, wait, wait, wait |
| Constructor Detail |
|---|
public WaffleServlet()
public WaffleServlet(ActionMethodExecutor actionMethodExecutor,
ActionMethodResponseHandler actionMethodResponseHandler,
ServletMonitor servletMonitor,
ControllerDataBinder controllerDataBinder,
ControllerDefinitionFactory controllerDefinitionFactory,
MessageResources messageResources,
ViewDataBinder viewDataBinder,
ViewResolver viewResolver,
Validator validator)
actionMethodExecutor - actionMethodResponseHandler - servletMonitor - controllerDataBinder - controllerDefinitionFactory - messageResources - viewDataBinder - viewResolver - validator - | Method Detail |
|---|
public void init()
throws javax.servlet.ServletException
init in class javax.servlet.GenericServletjavax.servlet.ServletExceptionprotected void configureViewProperties()
protected void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
service in class javax.servlet.http.HttpServletrequest - the HttpServletResponseresponse - the HttpServletResponse
javax.servlet.ServletException
java.io.IOExceptionprotected View buildView(ControllerDefinition controllerDefinition)
controllerDefinition - the ControllerDefinition
protected View buildRedirectingView(javax.servlet.http.HttpServletRequest request,
ControllerDefinition controllerDefinition)
request - the requestcontrollerDefinition - the ControllerDefinition
protected View buildActionMethodFailureView(ControllerDefinition controllerDefinition)
throws javax.servlet.ServletException
controllerDefinition - the ControllerDefinition
javax.servlet.ServletException - if required
protected View buildErrorsView()
throws javax.servlet.ServletException
javax.servlet.ServletException - if requiredpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||