Class DefaultPageFlowControl
- java.lang.Object
-
- org.onehippo.forge.pageflow.core.rt.DefaultPageFlowControl
-
- All Implemented Interfaces:
PageFlowControl
- Direct Known Subclasses:
DefaultHstPageFlowControl
public class DefaultPageFlowControl extends Object implements PageFlowControl
Default genericPageFlowControl
implementation in a web application.
-
-
Field Summary
-
Fields inherited from interface org.onehippo.forge.pageflow.core.rt.PageFlowControl
PAGE_FLOW_CONTROL_ATTR_NAME, PAGE_FLOW_ID_ATTR_NAME, PAGE_FLOW_ID_PROP_NAME
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DefaultPageFlowControl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
completePageFlow(javax.servlet.http.HttpServletRequest request, PageFlow pageFlow)
protected String
findPageFlowId(javax.servlet.http.HttpServletRequest request)
PageFlow
getPageFlow(javax.servlet.http.HttpServletRequest request)
protected PageFlow
getPageFlow(javax.servlet.http.HttpServletRequest request, String flowId)
protected PageFlowDefinitionRegistry
getPageFlowDefinitionRegistry()
protected PageFlowFactory
getPageFlowFactory()
protected PageFlowStore
getPageFlowStore()
void
sendRedirect(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, PageState pageState)
protected void
setPageFlowDefinitionRegistry(PageFlowDefinitionRegistry pageFlowDefinitionRegistry)
protected void
setPageFlowFactory(PageFlowFactory pageFlowFactory)
protected void
setPageFlowStore(PageFlowStore pageFlowStore)
-
-
-
Method Detail
-
getPageFlow
public PageFlow getPageFlow(javax.servlet.http.HttpServletRequest request) throws PageFlowException
- Specified by:
getPageFlow
in interfacePageFlowControl
- Throws:
PageFlowException
-
sendRedirect
public void sendRedirect(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, PageState pageState) throws PageFlowException, IOException, IllegalStateException
- Specified by:
sendRedirect
in interfacePageFlowControl
- Throws:
PageFlowException
IOException
IllegalStateException
-
completePageFlow
public void completePageFlow(javax.servlet.http.HttpServletRequest request, PageFlow pageFlow) throws PageFlowException
- Specified by:
completePageFlow
in interfacePageFlowControl
- Throws:
PageFlowException
-
findPageFlowId
protected String findPageFlowId(javax.servlet.http.HttpServletRequest request)
-
getPageFlow
protected PageFlow getPageFlow(javax.servlet.http.HttpServletRequest request, String flowId) throws PageFlowException
- Throws:
PageFlowException
-
getPageFlowDefinitionRegistry
protected PageFlowDefinitionRegistry getPageFlowDefinitionRegistry()
-
setPageFlowDefinitionRegistry
protected void setPageFlowDefinitionRegistry(PageFlowDefinitionRegistry pageFlowDefinitionRegistry)
-
getPageFlowFactory
protected PageFlowFactory getPageFlowFactory()
-
setPageFlowFactory
protected void setPageFlowFactory(PageFlowFactory pageFlowFactory)
-
getPageFlowStore
protected PageFlowStore getPageFlowStore()
-
setPageFlowStore
protected void setPageFlowStore(PageFlowStore pageFlowStore)
-
-