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, setRequireSessiongetPortletContext, getTempDir, isContextRequired, setPortletContextpublic 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.InitializingBeanjava.lang.Exceptionpublic boolean supports(java.lang.Object handler)
supports in interface org.springframework.web.portlet.HandlerAdapterpublic 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.HandlerAdapterjava.lang.Exceptionpublic 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.HandlerAdapterjava.lang.Exceptionpublic 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.HandlerAdapterjava.lang.Exceptionpublic 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.HandlerAdapterjava.lang.Exceptionprotected 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.PortletModeExceptionprotected 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)