|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HstSiteMapMatcher
Implementations should be able to match a path (pathInfo) in combination with a
object to a
HstSite
. Typically a ResolvedSiteMapItem
ResolvedSiteMapItem
is a request context based instance of a
, where possibly property placeholders in HstSiteMapItem
are replaced by their request context sensitive values. For example, a ${1} parameter value might be replaced by the value that matched
to the first HstSiteMapItem.getParameters()
HstSiteMapItem
containing a wildcard.
ResolvedSiteMapItem
is accessible by every HstComponent
instance through the HstRequestContext
When no HstSiteMapItem
can be found to match the pathInfo
, the implementation can return null for the
#match(String, HstSite)
, but is also allowed to return some catch all ResolvedSiteMapItem
Method Summary | |
---|---|
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 a HstSiteMapItem if possible. |
Method Detail |
---|
ResolvedSiteMapItem match(String pathInfo, ResolvedMount resolvedMount) throws NotFoundException
HstSiteMapItem
if possible.
pathInfo
- the pathInfo that should be matched in the HstSiteMapItem
treeresolvedMount
- the current ResolvedMount
that must matches the request serverName and pathInfo
NotFoundException
- when the pathInfo can not be matched to a HstSiteMapItem
void invalidate()
HstSiteMapMatcher
implementing class
holds a cache that needs to be flushed after a change in the HstSiteMap
configuration
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |