public class FlowController
extends java.lang.Object
implements org.springframework.web.servlet.mvc.Controller, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
FlowController()
Creates a new flow controller.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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