public abstract class AbstractHstSiteMapItemHandler extends Object implements HstSiteMapItemHandler
Constructor and Description |
---|
AbstractHstSiteMapItemHandler() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Allows the sitemap handler to destroy itself
|
protected SiteMapItemHandlerConfiguration |
getHandlerConfig() |
protected javax.servlet.ServletContext |
getHandlerServletContext() |
javax.servlet.ServletContext |
getServletContext()
Deprecated.
|
SiteMapItemHandlerConfiguration |
getSiteMapItemHandlerConfiguration()
Deprecated.
|
void |
init(javax.servlet.ServletContext servletContext,
SiteMapItemHandlerConfiguration handlerConfig)
Allows the HstSiteMapItemHandler to initialize itself
|
abstract ResolvedSiteMapItem |
process(ResolvedSiteMapItem resolvedSiteMapItem,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Does custom request processing.
|
public void init(javax.servlet.ServletContext servletContext, SiteMapItemHandlerConfiguration handlerConfig) throws HstSiteMapItemHandlerException
HstSiteMapItemHandler
init
in interface HstSiteMapItemHandler
servletContext
- the servletContext of the HST container servlethandlerConfig
- the componentConfigBean configurationHstSiteMapItemHandlerException
public abstract ResolvedSiteMapItem process(ResolvedSiteMapItem resolvedSiteMapItem, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws HstSiteMapItemHandlerException
HstSiteMapItemHandler
This method can return the original resolvedSiteMapItem or a new resolved sitemap item to serve a different one. Or it can return null when it completes the custom request processing by itself so HstFilter needs to stop the request processing.
process
in interface HstSiteMapItemHandler
ResolvedSiteMapItem
, or null
when the handler did for example already write the entire response
and request processing can be stoppedHstSiteMapItemHandlerException
public void destroy() throws HstSiteMapItemHandlerException
HstSiteMapItemHandler
destroy
in interface HstSiteMapItemHandler
HstSiteMapItemHandlerException
protected SiteMapItemHandlerConfiguration getHandlerConfig()
protected javax.servlet.ServletContext getHandlerServletContext()
@Deprecated public SiteMapItemHandlerConfiguration getSiteMapItemHandlerConfiguration()
HstSiteMapItemHandler
SiteMapItemHandlerConfiguration
all (resolved) configuration properties can be accessed.getSiteMapItemHandlerConfiguration
in interface HstSiteMapItemHandler
@Deprecated public javax.servlet.ServletContext getServletContext()
getServletContext
in interface HstSiteMapItemHandler
Copyright © 2008-2013 Hippo B.V. (http://www.onehippo.com). All Rights Reserved.