Class DefaultPageFlowControlHstSiteMapItemHandler
java.lang.Object
org.hippoecm.hst.core.sitemapitemhandler.AbstractHstSiteMapItemHandler
org.hippoecm.hst.core.sitemapitemhandler.AbstractFilterChainAwareHstSiteMapItemHandler
org.onehippo.forge.pageflow.hst.sitemapitemhandler.DefaultPageFlowControlHstSiteMapItemHandler
- All Implemented Interfaces:
org.hippoecm.hst.core.sitemapitemhandler.FilterChainAwareHstSiteMapItemHandler,org.hippoecm.hst.core.sitemapitemhandler.HstSiteMapItemHandler
public class DefaultPageFlowControlHstSiteMapItemHandler
extends org.hippoecm.hst.core.sitemapitemhandler.AbstractFilterChainAwareHstSiteMapItemHandler
Default generic
HstSiteMapItemHandler implementation to integrate with Page Flow module.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PageFlowControlcreatePageFlowControl(jakarta.servlet.http.HttpServletRequest request) Create aPageFlowControlfor this request.protected PageFlowgetActivePageFlow(jakarta.servlet.http.HttpServletRequest request, PageFlowControl flowControl) Return an activePageFlowinstance for this request.protected <T> TgetConfigurationProperty(String name, org.hippoecm.hst.core.request.ResolvedSiteMapItem resolvedSiteMapItem, Class<T> type, T defaultValue) Get the configuration property value on theresolvedSiteMapItem.protected PageFlowControlgetPageFlowControl(jakarta.servlet.http.HttpServletRequest request) Get aPageFlowControlinstance for this request.protected org.hippoecm.hst.core.request.SiteMapItemHandlerConfigurationReturn SiteMapItemHandlerConfiguration.voidinit(jakarta.servlet.ServletContext servletContext, org.hippoecm.hst.core.request.SiteMapItemHandlerConfiguration siteMapItemHandlerConfiguration) protected booleanisRequestForPageState(jakarta.servlet.http.HttpServletRequest request, PageState pageState) Return true if the currentrequestis for the specificpageStateby comparing thepathInfoof therequestwith thepathof thepageState.org.hippoecm.hst.core.request.ResolvedSiteMapItemprocess(org.hippoecm.hst.core.request.ResolvedSiteMapItem resolvedSiteMapItem, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.FilterChain filterChain) protected org.hippoecm.hst.core.request.ResolvedSiteMapItemprocessDefaultResolvedSiteMapItem(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.FilterChain filterChain, org.hippoecm.hst.core.request.ResolvedSiteMapItem resolvedSiteMapItem) Process the current resolved sitemap item by the default behavior, without any custom behavior from Page Flow Module.Methods inherited from class org.hippoecm.hst.core.sitemapitemhandler.AbstractFilterChainAwareHstSiteMapItemHandler
processMethods inherited from class org.hippoecm.hst.core.sitemapitemhandler.AbstractHstSiteMapItemHandler
destroyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hippoecm.hst.core.sitemapitemhandler.HstSiteMapItemHandler
destroy
-
Field Details
-
PARAM_ENABLED
- See Also:
-
PARAM_AUTO_REDIRECTION_ENABLED
- See Also:
-
-
Constructor Details
-
DefaultPageFlowControlHstSiteMapItemHandler
public DefaultPageFlowControlHstSiteMapItemHandler()
-
-
Method Details
-
init
public void init(jakarta.servlet.ServletContext servletContext, org.hippoecm.hst.core.request.SiteMapItemHandlerConfiguration siteMapItemHandlerConfiguration) throws org.hippoecm.hst.core.sitemapitemhandler.HstSiteMapItemHandlerException - Specified by:
initin interfaceorg.hippoecm.hst.core.sitemapitemhandler.HstSiteMapItemHandler- Overrides:
initin classorg.hippoecm.hst.core.sitemapitemhandler.AbstractHstSiteMapItemHandler- Throws:
org.hippoecm.hst.core.sitemapitemhandler.HstSiteMapItemHandlerException
-
process
public org.hippoecm.hst.core.request.ResolvedSiteMapItem process(org.hippoecm.hst.core.request.ResolvedSiteMapItem resolvedSiteMapItem, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.FilterChain filterChain) throws org.hippoecm.hst.core.sitemapitemhandler.HstSiteMapItemHandlerException - Specified by:
processin interfaceorg.hippoecm.hst.core.sitemapitemhandler.FilterChainAwareHstSiteMapItemHandler- Specified by:
processin classorg.hippoecm.hst.core.sitemapitemhandler.AbstractFilterChainAwareHstSiteMapItemHandler- Throws:
org.hippoecm.hst.core.sitemapitemhandler.HstSiteMapItemHandlerException
-
getSiteMapItemHandlerConfiguration
protected org.hippoecm.hst.core.request.SiteMapItemHandlerConfiguration getSiteMapItemHandlerConfiguration()Return SiteMapItemHandlerConfiguration.- Returns:
- SiteMapItemHandlerConfiguration
-
getPageFlowControl
Get aPageFlowControlinstance for this request.- Parameters:
request- servlet request- Returns:
- a
PageFlowControlinstance for this request
-
createPageFlowControl
Create aPageFlowControlfor this request.- Parameters:
request- servlet request- Returns:
- a
PageFlowControlfor this request
-
getActivePageFlow
protected PageFlow getActivePageFlow(jakarta.servlet.http.HttpServletRequest request, PageFlowControl flowControl) Return an activePageFlowinstance for this request.- Parameters:
request- servlet requestflowControl-PageFlowControlinstance- Returns:
- an active
PageFlowinstance for this request
-
processDefaultResolvedSiteMapItem
protected org.hippoecm.hst.core.request.ResolvedSiteMapItem processDefaultResolvedSiteMapItem(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.FilterChain filterChain, org.hippoecm.hst.core.request.ResolvedSiteMapItem resolvedSiteMapItem) Process the current resolved sitemap item by the default behavior, without any custom behavior from Page Flow Module.- Parameters:
request- servlet requestresponse- servlet responsefilterChain- servlet filter chainresolvedSiteMapItem- resolved sitemap item- Returns:
- resolved sitemap item, the same meaning as
HstSiteMapItemHandler.process(ResolvedSiteMapItem, HttpServletRequest, HttpServletResponse).
-
getConfigurationProperty
protected <T> T getConfigurationProperty(String name, org.hippoecm.hst.core.request.ResolvedSiteMapItem resolvedSiteMapItem, Class<T> type, T defaultValue) Get the configuration property value on theresolvedSiteMapItem.- Parameters:
name- configuration property nameresolvedSiteMapItem- resolved sitemap itemtype- expected configuration value typedefaultValue- default value- Returns:
- the configuration property value on the
resolvedSiteMapItem
-
isRequestForPageState
protected boolean isRequestForPageState(jakarta.servlet.http.HttpServletRequest request, PageState pageState) Return true if the currentrequestis for the specificpageStateby comparing thepathInfoof therequestwith thepathof thepageState.- Parameters:
request- servlet requestpageState- page state- Returns:
- true if the current
requestis for the specificpageStateby comparing thepathInfoof therequestwith thepathof thepageState
-