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
|
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
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.