|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
org.springframework.web.servlet.support.WebContentGenerator
org.springframework.web.servlet.mvc.AbstractController
org.springframework.webflow.mvc.FlowController
public class FlowController
Web controller for the Spring web MVC framework that routes incoming requests to one
or more managed web flows. Requests into the web flow system are managed using a
configurable ServletFlowExecutionManager. Consult the JavaDoc of that class
for more information on how requests are processed.
Note that a single FlowController may manage executions for all flows of your application
-- simply parameterize this controller from view code with the _flowId to
execute. See the flowLauncher sample application for an example of this.
Configuration note: you may achieve fine-grained control over flow execution management by passing in a configured flow execution manager instance. Alternatively, if this controller should manage executions in the default manner for a single flow definition, simply configure the flow property.
Exposed configuration properties:
| name | default | description |
| flowExecutionManager | default |
Configures the HTTP servlet flow execution manager implementation to use. |
| flow | null | Configures a single Flow definition to manage. Note this property should only be set as a convenience if fine-grained configuration of the flowExecutionManager is not neccessary. |
Flow,
ServletFlowExecutionManager| Field Summary |
|---|
| Fields inherited from class org.springframework.web.servlet.support.WebContentGenerator |
|---|
HEADER_CACHE_CONTROL, HEADER_EXPIRES, HEADER_PRAGMA, METHOD_GET, METHOD_HEAD, METHOD_POST |
| Fields inherited from class org.springframework.context.support.ApplicationObjectSupport |
|---|
logger |
| Constructor Summary | |
|---|---|
FlowController()
Create a new FlowController. |
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
protected ServletFlowExecutionManager |
getFlowExecutionManager()
Returns the flow execution manager used by this controller. |
protected org.springframework.web.servlet.ModelAndView |
handleRequestInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
protected void |
initDefaults()
Set default properties for this controller. |
void |
setFlow(Flow flow)
Convenience setter that configures a single flow definition for this controller to manage. |
void |
setFlowExecutionManager(ServletFlowExecutionManager manager)
Configures the flow execution manager implementation to use. |
protected org.springframework.web.servlet.ModelAndView |
toModelAndView(ViewDescriptor viewDescriptor)
Create a ModelAndView object based on the information in given view descriptor. |
| Methods inherited from class org.springframework.web.servlet.mvc.AbstractController |
|---|
handleRequest, isSynchronizeOnSession, setSynchronizeOnSession |
| Methods inherited from class org.springframework.web.servlet.support.WebContentGenerator |
|---|
applyCacheSeconds, applyCacheSeconds, cacheForSeconds, cacheForSeconds, checkAndPrepare, checkAndPrepare, getCacheSeconds, getSupportedMethods, isRequireSession, isUseCacheControlHeader, isUseExpiresHeader, preventCaching, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseExpiresHeader |
| Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport |
|---|
getServletContext, getTempDir, getWebApplicationContext, isContextRequired |
| Methods inherited from class org.springframework.context.support.ApplicationObjectSupport |
|---|
getApplicationContext, getMessageSourceAccessor, initApplicationContext, requiredContextClass, setApplicationContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FlowController()
The "cacheSeconds" property is by default set to 0 (so no caching for web flow controllers).
| Method Detail |
|---|
protected void initDefaults()
protected ServletFlowExecutionManager getFlowExecutionManager()
public void setFlowExecutionManager(ServletFlowExecutionManager manager)
setFlow() -- call one or the other.
manager - the flow execution managersetFlow(Flow)public void setFlow(Flow flow)
setFlowExecutionManager() -- call one
or the other.
flow - the flow that this controller will managesetFlowExecutionManager(ServletFlowExecutionManager)
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exception
protected org.springframework.web.servlet.ModelAndView handleRequestInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
handleRequestInternal in class org.springframework.web.servlet.mvc.AbstractControllerjava.lang.Exceptionprotected org.springframework.web.servlet.ModelAndView toModelAndView(ViewDescriptor viewDescriptor)
viewDescriptor - the view descriptor to convert
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||