public interface HstSiteMapItemHandler
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Allows the sitemap handler to destroy itself
|
javax.servlet.ServletContext |
getServletContext()
Deprecated.
this method is deprecated since 2.25.02
|
SiteMapItemHandlerConfiguration |
getSiteMapItemHandlerConfiguration()
Deprecated.
this method is deprecated since 2.25.02 as it should not be needed. The
SiteMapItemHandlerConfiguration can
be accessed by storing the SiteMapItemHandlerConfiguration during the init(javax.servlet.ServletContext, org.hippoecm.hst.core.request.SiteMapItemHandlerConfiguration) |
void |
init(javax.servlet.ServletContext servletContext,
SiteMapItemHandlerConfiguration handlerConfig)
Allows the HstSiteMapItemHandler to initialize itself
|
ResolvedSiteMapItem |
process(ResolvedSiteMapItem resolvedSiteMapItem,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Does custom request processing.
|
void init(javax.servlet.ServletContext servletContext, SiteMapItemHandlerConfiguration handlerConfig) throws HstSiteMapItemHandlerException
servletContext
- the servletContext of the HST container servlethandlerConfig
- the componentConfigBean configurationHstSiteMapItemHandlerException
ResolvedSiteMapItem process(ResolvedSiteMapItem resolvedSiteMapItem, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws HstSiteMapItemHandlerException
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.
resolvedSiteMapItem
- request
- response
- ResolvedSiteMapItem
, or null
when the handler did for example already write the entire response
and request processing can be stoppedHstSiteMapItemHandlerException
@Deprecated SiteMapItemHandlerConfiguration getSiteMapItemHandlerConfiguration()
SiteMapItemHandlerConfiguration
can
be accessed by storing the SiteMapItemHandlerConfiguration during the init(javax.servlet.ServletContext, org.hippoecm.hst.core.request.SiteMapItemHandlerConfiguration)
SiteMapItemHandlerConfiguration
all (resolved) configuration properties can be accessed.@Deprecated javax.servlet.ServletContext getServletContext()
void destroy() throws HstSiteMapItemHandlerException
HstSiteMapItemHandlerException
Copyright © 2008-2013 Hippo B.V. (http://www.onehippo.com). All Rights Reserved.