Package org.hippoecm.hst.core.request
Interface HstSiteMapMatcher
-
public interface HstSiteMapMatcher
Implementations should be able to match a path (pathInfo) in combination with a
object to aHstSite
. Typically aResolvedSiteMapItem
ResolvedSiteMapItem
is a request context based instance of a
, where possibly property placeholders inHstSiteMapItem
are replaced by their request context sensitive values. For example, a ${1} parameter value might be replaced by the value that matched to the firstHstSiteMapItem.getParameters()
HstSiteMapItem
containing a wildcard. Note: theResolvedSiteMapItem
is accessible by everyHstComponent
instance through theHstRequestContext
When noHstSiteMapItem
can be found to match thepathInfo
, the implementation can return null for thematch(String, ResolvedMount)
, but is also allowed to return some catch allResolvedSiteMapItem
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
invalidate()
method that can be called if some event is triggered.ResolvedSiteMapItem
match(String pathInfo, ResolvedMount resolvedMount)
method to match the pathInfo for the hstSite to aHstSiteMapItem
if possible.
-
-
-
Method Detail
-
match
ResolvedSiteMapItem match(String pathInfo, ResolvedMount resolvedMount) throws NotFoundException
method to match the pathInfo for the hstSite to aHstSiteMapItem
if possible.- Parameters:
pathInfo
- the pathInfo that should be matched in theHstSiteMapItem
treeresolvedMount
- the currentResolvedMount
that must matches the request serverName and pathInfo- Returns:
- a ResolvedSiteMapItem
- Throws:
NotFoundException
- when the pathInfo can not be matched to aHstSiteMapItem
-
invalidate
void invalidate()
method that can be called if some event is triggered. For example if theHstSiteMapMatcher
implementing class holds a cache that needs to be flushed after a change in theHstSiteMap
configuration
-
-