org.apache.cocoon.sitemap.matcher
Class WildcardMatcher.WildcardExpressionRewriter

java.lang.Object
  extended by org.apache.cocoon.sitemap.matcher.WildcardMatcher.WildcardExpressionRewriter
Enclosing class:
WildcardMatcher

protected static class WildcardMatcher.WildcardExpressionRewriter
extends Object

The WildcardMatcher.WildcardExpressionRewriter takes an expression like /abc/{id}/{name}.html and replaces all placeholders by stars ('*') so that the WildcardHelper can be used. It also provides a list of all results so that the WildcardHelper results can be matched with the parameters set in the expression.


Constructor Summary
WildcardMatcher.WildcardExpressionRewriter(String originalExpression)
           
 
Method Summary
 String getOriginalExpression()
           
 int getParameterPosition(String parameterName)
           
 Map<String,String> getParameters()
           
 String getRewrittenExpression()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WildcardMatcher.WildcardExpressionRewriter

public WildcardMatcher.WildcardExpressionRewriter(String originalExpression)
Method Detail

getOriginalExpression

public String getOriginalExpression()

getParameters

public Map<String,String> getParameters()

getParameterPosition

public int getParameterPosition(String parameterName)

getRewrittenExpression

public String getRewrittenExpression()


Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.