|
Spring Web Flow | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.webflow.mvc.servlet.FlowController
public class FlowController
The adapter between the Spring MVC Controller layer and the Spring Web Flow engine. This controller allows Spring Web Flow to run embedded as a Controller within a DispatcherServlet, the key piece of the Spring Web MVC platform. It is expected a DispatcherServlet HandlerMapping will care for mapping all requests for flows to this controller for handling.
Constructor Summary | |
---|---|
FlowController()
Creates a new flow controller. |
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
AjaxHandler |
getAjaxHandler()
Returns the configured Ajax handler. |
FlowExecutor |
getFlowExecutor()
Returns the central service for executing flows. |
FlowHandlerAdapter |
getFlowHandlerAdapter()
Returns the flow handler adapter which this Controller uses internally to carry out handler workflow. |
FlowUrlHandler |
getFlowUrlHandler()
Returns the configured flow url handler. |
org.springframework.web.servlet.ModelAndView |
handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
void |
registerFlowHandler(FlowHandler flowHandler)
Registers a flow handler this controller should delegate to to customize the control logic associated with managing the execution of a specific flow. |
void |
setAjaxHandler(AjaxHandler ajaxHandler)
Sets the configured Ajax handler. |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
void |
setFlowExecutor(FlowExecutor flowExecutor)
Sets the central service for executing flows. |
void |
setFlowHandlerAdapter(FlowHandlerAdapter flowHandlerAdapter)
Sets the flow handler adapter which this Controller uses internally to carry out handler workflow. |
void |
setFlowHandlers(java.util.Map<java.lang.String,FlowHandler> flowHandlers)
Sets the custom flow handles for managing the access to flows in a custom manner. |
void |
setFlowUrlHandler(FlowUrlHandler urlHandler)
Sets the configured flow url handler. |
void |
setRedirectHttp10Compatible(boolean redirectHttp10Compatible)
Set whether redirects sent by this controller should be compatible with HTTP 1.0 clients. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FlowController()
setFlowExecutor(FlowExecutor)
,
setFlowUrlHandler(FlowUrlHandler)
,
setAjaxHandler(AjaxHandler)
,
setFlowHandlerAdapter(FlowHandlerAdapter)
,
afterPropertiesSet()
Method Detail |
---|
public FlowExecutor getFlowExecutor()
public void setFlowExecutor(FlowExecutor flowExecutor)
flowExecutor
- public FlowUrlHandler getFlowUrlHandler()
public void setFlowUrlHandler(FlowUrlHandler urlHandler)
urlHandler
- the flow url handler.public AjaxHandler getAjaxHandler()
public void setAjaxHandler(AjaxHandler ajaxHandler)
ajaxHandler
- the ajax handlerpublic void setRedirectHttp10Compatible(boolean redirectHttp10Compatible)
By default, this will enforce a redirect HTTP status code of 302 by delegating to
HttpServletResponse.sendRedirect
. Setting this to false will send HTTP status code 303, which is the
correct code for HTTP 1.1 clients, but not understood by HTTP 1.0 clients.
Many HTTP 1.1 clients treat 302 just like 303, not making any difference. However, some clients depend on 303 when redirecting after a POST request; turn this flag off in such a scenario.
HttpServletResponse.sendRedirect(java.lang.String)
public void setFlowHandlers(java.util.Map<java.lang.String,FlowHandler> flowHandlers)
flowHandlers
- the flow handler mappublic void registerFlowHandler(FlowHandler flowHandler)
flowHandler
- the handlerpublic FlowHandlerAdapter getFlowHandlerAdapter()
public void setFlowHandlerAdapter(FlowHandlerAdapter flowHandlerAdapter)
flowHandlerAdapter
- the flow handler adapterpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
public org.springframework.web.servlet.ModelAndView handleRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.lang.Exception
handleRequest
in interface org.springframework.web.servlet.mvc.Controller
java.lang.Exception
|
Spring Web Flow | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |