public class FlowHandlerAdapter
extends org.springframework.web.servlet.support.WebContentGenerator
implements org.springframework.web.servlet.HandlerAdapter, org.springframework.beans.factory.InitializingBean
flow handlers
to manage the interaction with executions of
specific flow definitions.Constructor and Description |
---|
FlowHandlerAdapter()
Creates a new flow handler adapter.
|
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
AjaxHandler |
getAjaxHandler()
Returns the configured Ajax handler.
|
FlowExecutor |
getFlowExecutor()
Returns the central service for executing flows.
|
FlowUrlHandler |
getFlowUrlHandler()
Returns the flow url handler.
|
long |
getLastModified(javax.servlet.http.HttpServletRequest request,
Object handler) |
boolean |
getRedirectHttp10Compatible()
Whether redirect sent by this handler adapter should be compatible with HTTP 1.0 clients.
|
org.springframework.web.servlet.ModelAndView |
handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler) |
void |
setAjaxHandler(AjaxHandler ajaxHandler)
Sets the configured Ajax handler.
|
void |
setFlowExecutor(FlowExecutor flowExecutor)
Sets the central service for executing flows.
|
void |
setFlowUrlHandler(FlowUrlHandler flowUrlHandler)
Sets the flow url handler
|
void |
setRedirectHttp10Compatible(boolean redirectHttp10Compatible)
Set whether redirects sent by this handler adapter should be compatible with HTTP 1.0 clients.
|
boolean |
supports(Object handler) |
getCacheSeconds, getSupportedMethods, isAlwaysMustRevalidate, isRequireSession, isUseCacheControlHeader, isUseCacheControlNoStore, isUseExpiresHeader, setAlwaysMustRevalidate, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseCacheControlNoStore, setUseExpiresHeader
setServletContext
public FlowHandlerAdapter()
public FlowExecutor getFlowExecutor()
public void setFlowExecutor(FlowExecutor flowExecutor)
flowExecutor
- public FlowUrlHandler getFlowUrlHandler()
public void setFlowUrlHandler(FlowUrlHandler flowUrlHandler)
flowUrlHandler
- the flow url handlerpublic AjaxHandler getAjaxHandler()
public void setAjaxHandler(AjaxHandler ajaxHandler)
ajaxHandler
- the ajax handlerpublic boolean getRedirectHttp10Compatible()
public 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 afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public boolean supports(Object handler)
supports
in interface org.springframework.web.servlet.HandlerAdapter
public org.springframework.web.servlet.ModelAndView handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler) throws Exception
handle
in interface org.springframework.web.servlet.HandlerAdapter
Exception
public long getLastModified(javax.servlet.http.HttpServletRequest request, Object handler)
getLastModified
in interface org.springframework.web.servlet.HandlerAdapter