org.hippoecm.hst.site.request
Class BasicHstSiteMapMatcher

java.lang.Object
  extended by org.hippoecm.hst.site.request.BasicHstSiteMapMatcher
All Implemented Interfaces:
HstSiteMapMatcher

public class BasicHstSiteMapMatcher
extends Object
implements HstSiteMapMatcher

BasicHstSiteMapMatcher

Version:
$Id: BasicHstSiteMapMatcher.java 31626 2011-12-05 11:49:55Z aschrijvers $

Field Summary
static String ANY
           
static String WILDCARD
           
 
Constructor Summary
BasicHstSiteMapMatcher()
           
 
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.
 void setLinkProcessor(HstLinkProcessor linkProcessor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WILDCARD

public static final String WILDCARD
See Also:
Constant Field Values

ANY

public static final String ANY
See Also:
Constant Field Values
Constructor Detail

BasicHstSiteMapMatcher

public BasicHstSiteMapMatcher()
Method Detail

setLinkProcessor

public void setLinkProcessor(HstLinkProcessor linkProcessor)

match

public ResolvedSiteMapItem match(String pathInfo,
                                 ResolvedMount resolvedMount)
                          throws NotFoundException
Description copied from interface: HstSiteMapMatcher
method to match the pathInfo for the hstSite to a HstSiteMapItem if possible.

Specified by:
match in interface HstSiteMapMatcher
Parameters:
pathInfo - the pathInfo that should be matched in the HstSiteMapItem tree
resolvedMount - the current ResolvedMount that must matches the request serverName and pathInfo
Returns:
a ResolvedSiteMapItem
Throws:
NotFoundException - when the pathInfo can not be matched to a HstSiteMapItem

invalidate

public void invalidate()
Description copied from interface: HstSiteMapMatcher
method that can be called if some event is triggered. For example if the HstSiteMapMatcher implementing class holds a cache that needs to be flushed after a change in the HstSiteMap configuration

Specified by:
invalidate in interface HstSiteMapMatcher


Copyright © 2008-2012 Hippo. All Rights Reserved.