public class FlowHandlerAdapter
extends org.springframework.web.portlet.handler.PortletContentGenerator
implements org.springframework.web.portlet.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() |
protected PortletExternalContext |
createPortletExternalContext(javax.portlet.PortletRequest request,
javax.portlet.PortletResponse response) |
protected MutableAttributeMap<java.lang.Object> |
defaultCreateFlowExecutionInputMap(javax.portlet.PortletRequest request) |
protected org.springframework.web.portlet.ModelAndView |
defaultHandleException(FlowHandler flowHandler,
FlowException e,
javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response) |
protected void |
defaultHandleExecutionOutcome(FlowExecutionOutcome outcome,
FlowHandler flowHandler,
javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response) |
protected org.springframework.web.portlet.ModelAndView |
defaultHandleResourceException(FlowHandler flowHandler,
FlowException e,
javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response) |
FlowExecutor |
getFlowExecutor()
Returns the central service for executing flows.
|
FlowUrlHandler |
getFlowUrlHandler()
Returns the flow url handler.
|
void |
handleAction(javax.portlet.ActionRequest request,
javax.portlet.ActionResponse response,
java.lang.Object handler) |
void |
handleEvent(javax.portlet.EventRequest request,
javax.portlet.EventResponse response,
java.lang.Object handler) |
org.springframework.web.portlet.ModelAndView |
handleRender(javax.portlet.RenderRequest request,
javax.portlet.RenderResponse response,
java.lang.Object handler) |
org.springframework.web.portlet.ModelAndView |
handleResource(javax.portlet.ResourceRequest request,
javax.portlet.ResourceResponse response,
java.lang.Object handler) |
protected void |
populateConveniencePortletProperties(javax.portlet.PortletRequest request) |
void |
setFlowExecutor(FlowExecutor flowExecutor)
Sets the central service for executing flows.
|
void |
setFlowUrlHandler(FlowUrlHandler urlHandler)
Sets the flow url handler
|
boolean |
supports(java.lang.Object handler) |
applyCacheSeconds, cacheForSeconds, check, checkAndPrepare, checkAndPrepare, getCacheSeconds, isRequireSession, preventCaching, setCacheSeconds, setRequireSession
getPortletContext, getTempDir, isContextRequired, setPortletContext
public FlowHandlerAdapter()
public FlowExecutor getFlowExecutor()
public void setFlowExecutor(FlowExecutor flowExecutor)
flowExecutor
- public FlowUrlHandler getFlowUrlHandler()
public void setFlowUrlHandler(FlowUrlHandler urlHandler)
urlHandler
- the flow url handlerpublic void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
public boolean supports(java.lang.Object handler)
supports
in interface org.springframework.web.portlet.HandlerAdapter
public org.springframework.web.portlet.ModelAndView handleRender(javax.portlet.RenderRequest request, javax.portlet.RenderResponse response, java.lang.Object handler) throws java.lang.Exception
handleRender
in interface org.springframework.web.portlet.HandlerAdapter
java.lang.Exception
public org.springframework.web.portlet.ModelAndView handleResource(javax.portlet.ResourceRequest request, javax.portlet.ResourceResponse response, java.lang.Object handler) throws java.lang.Exception
handleResource
in interface org.springframework.web.portlet.HandlerAdapter
java.lang.Exception
public void handleAction(javax.portlet.ActionRequest request, javax.portlet.ActionResponse response, java.lang.Object handler) throws java.lang.Exception
handleAction
in interface org.springframework.web.portlet.HandlerAdapter
java.lang.Exception
public void handleEvent(javax.portlet.EventRequest request, javax.portlet.EventResponse response, java.lang.Object handler) throws java.lang.Exception
handleEvent
in interface org.springframework.web.portlet.HandlerAdapter
java.lang.Exception
protected void populateConveniencePortletProperties(javax.portlet.PortletRequest request)
protected PortletExternalContext createPortletExternalContext(javax.portlet.PortletRequest request, javax.portlet.PortletResponse response)
protected MutableAttributeMap<java.lang.Object> defaultCreateFlowExecutionInputMap(javax.portlet.PortletRequest request)
protected void defaultHandleExecutionOutcome(FlowExecutionOutcome outcome, FlowHandler flowHandler, javax.portlet.ActionRequest request, javax.portlet.ActionResponse response) throws javax.portlet.PortletModeException
javax.portlet.PortletModeException
protected org.springframework.web.portlet.ModelAndView defaultHandleException(FlowHandler flowHandler, FlowException e, javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)
protected org.springframework.web.portlet.ModelAndView defaultHandleResourceException(FlowHandler flowHandler, FlowException e, javax.portlet.ResourceRequest request, javax.portlet.ResourceResponse response)