public interface HstSiteMapItemHandler
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Deprecated.
since 13.0.0 : #destroy won't be invoked any more and will be removed. On every
VirtualHosts rebuild (aka after hst config changes),
HstSiteMapItemHandler instances are recreated. Make sure that your implementation of the
HstSiteMapItemHandler does not result in a memory leak, for example because you add objects to a
class variable like a static cache. The reason why this has been deprecated is that HstSiteMapItemHandler instances
now piggy-back on the lifecycle on the VirtualHosts instead of on
a separate registry |
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 void destroy() throws HstSiteMapItemHandlerException
VirtualHosts
rebuild (aka after hst config changes),
HstSiteMapItemHandler
instances are recreated. Make sure that your implementation of the
HstSiteMapItemHandler
does not result in a memory leak, for example because you add objects to a
class variable like a static cache. The reason why this has been deprecated is that HstSiteMapItemHandler instances
now piggy-back on the lifecycle on the VirtualHosts
instead of on
a separate registryHstSiteMapItemHandlerException
Copyright © 2008–2020 Hippo B.V. (http://www.onehippo.com). All rights reserved.