|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hippoecm.hst.sitemapitemhandler.AbstractHstSiteMapHandler
public abstract class AbstractHstSiteMapHandler
The abstract implementation of the HstSiteMapItemHandler interface. Note that HstSiteMapItemHandler's are used concurrent and are not thread-safe. Implementations should take care of concurrency.
Constructor Summary | |
---|---|
AbstractHstSiteMapHandler()
|
Method Summary | |
---|---|
void |
destroy()
Override this method when the destroy of this HstSiteMapItemHandler should invoke some processing, for example clear a cache |
javax.servlet.ServletContext |
getServletContext()
|
SiteMapItemHandlerConfiguration |
getSiteMapItemHandlerConfiguration()
Through the SiteMapItemHandlerConfiguration all (resolved) configuration properties can be accessed. |
HstURLFactory |
getURLFactory(ResolvedSiteMapItem resolvedSiteMapItem)
|
void |
init(javax.servlet.ServletContext servletContext,
SiteMapItemHandlerConfiguration handlerConfig)
Allows the HstSiteMapItemHandler to initialize itself |
ResolvedSiteMapItem |
matchSiteMapItem(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ResolvedSiteMapItem currentResolvedSiteMapItem,
String pathInfo)
Resolves with the help of the current resolvedSiteMapItem to a new sitemap item with path pathInfo |
ResolvedSiteMapItem |
process(ResolvedSiteMapItem resolvedSiteMapItem,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Override this method when you are implementing your own real HstSiteMapHandler. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractHstSiteMapHandler()
Method Detail |
---|
public void init(javax.servlet.ServletContext servletContext, SiteMapItemHandlerConfiguration handlerConfig) throws HstSiteMapItemHandlerException
HstSiteMapItemHandler
init
in interface HstSiteMapItemHandler
handlerConfig
- the componentConfigBean configuration
HstSiteMapItemHandlerException
public ResolvedSiteMapItem process(ResolvedSiteMapItem resolvedSiteMapItem, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws HstSiteMapItemHandlerException
resolvedSiteMapItem
directly.
process
in interface HstSiteMapItemHandler
ResolvedSiteMapItem
, or null
when the handler did for example already write the entire response
and request processing can be stopped
HstSiteMapItemHandlerException
public void destroy() throws HstSiteMapItemHandlerException
destroy
in interface HstSiteMapItemHandler
HstSiteMapItemHandlerException
public SiteMapItemHandlerConfiguration getSiteMapItemHandlerConfiguration()
HstSiteMapItemHandler
SiteMapItemHandlerConfiguration
all (resolved) configuration properties can be accessed.
getSiteMapItemHandlerConfiguration
in interface HstSiteMapItemHandler
public javax.servlet.ServletContext getServletContext()
getServletContext
in interface HstSiteMapItemHandler
public ResolvedSiteMapItem matchSiteMapItem(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ResolvedSiteMapItem currentResolvedSiteMapItem, String pathInfo) throws MatchException
pathInfo
request
- response
- currentResolvedSiteMapItem
- pathInfo
-
MatchException
- when the pathInfo
cannot be matchedpublic HstURLFactory getURLFactory(ResolvedSiteMapItem resolvedSiteMapItem)
resolvedSiteMapItem
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |