cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: [C2] Sitemap revised again
Date Fri, 30 Jun 2000 10:27:53 GMT
Giacomo Pati wrote:
> 
> --- Stefano Mazzocchi <stefano@apache.org> wrote:
> > the matcher interface is similar to the Chooser one but different
> >
> >  public interface Matcher implements Component {
> >    public Map match(String pattern, ...);
> >  }
> 
> I'm stumbled over the fact that this Interface didn't show if the matcher was indeed
successfully
> matching a given pattern when the pattern does not contain any wildcards:
> 
> <map:match type="uri-wildcard-matcher" pattern="/my/fancy/page">
>   ...
> </map:match>

why not? just return "new Hashtable()" and you're done.

If the match is positive, the an object is returned, otherwise null is
returned.

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------



Mime
View raw message