org.dspace.app.xmlui.aspect.general
Class HandleMatcher

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.dspace.app.xmlui.aspect.general.HandleMatcher
All Implemented Interfaces:
org.apache.avalon.framework.logger.LogEnabled, org.apache.cocoon.matching.Matcher

public class HandleMatcher
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements org.apache.cocoon.matching.Matcher

Test the current URL to see if it or any of it's parants match against the given handle.

Author:
Scott Phillips

Field Summary
 
Fields inherited from interface org.apache.cocoon.matching.Matcher
ROLE
 
Constructor Summary
HandleMatcher()
           
 
Method Summary
 Map match(String pattern, Map objectModel, org.apache.avalon.framework.parameters.Parameters parameters)
          Match method to see if the sitemap parameter exists.
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HandleMatcher

public HandleMatcher()
Method Detail

match

public Map match(String pattern,
                 Map objectModel,
                 org.apache.avalon.framework.parameters.Parameters parameters)
          throws org.apache.cocoon.sitemap.PatternException
Match method to see if the sitemap parameter exists. If it does have a value the parameter added to the array list for later sitemap substitution.

Specified by:
match in interface org.apache.cocoon.matching.Matcher
Parameters:
pattern - name of sitemap parameter to find
objectModel - environment passed through via cocoon
Returns:
null or map containing value of sitemap parameter 'pattern'
Throws:
org.apache.cocoon.sitemap.PatternException


Copyright © 2013 DuraSpace. All Rights Reserved.