Started afresh and got it working finally.

 I tried with and without escape character and both worked.

Thanks,
jM.


On Sun, Jul 18, 2010 at 1:09 PM, Konstantin Kolinko
<knst.koli...@gmail.com>wrote:

> 2010/7/18 Shantanu Pavgi <pa...@uab.edu>:
> >
> > I don't have a solution, but just wanted to comment that examples in the
> doc are correct.
> > See API doc:
> http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/catalina/valves/RequestFilterValve.html#allow
> > The 'allow' field uses String expression and 'allows' uses Java Regex
> package.
> >
>
> It is the same value. "allows" is created from "allow", by splitting
> the value at commas and converting each one into a regex.
>
>  There is setAllow(..), but there is no setAllows(...) setter method.
>
>
> http://svn.apache.org/viewvc/tomcat/tc5.5.x/trunk/container/catalina/src/share/org/apache/catalina/valves/RequestFilterValve.java?view=markup
>
>
> 143      public void setAllow(String allow) {
> 145     this.allow = allow;
> 146     allows = precalculate(allow);
> 148     }
>
> 218      protected Pattern[] precalculate(String list) {
> (...)
> 232      String pattern = list.substring(0, comma).trim();
> 234      reList.add(Pattern.compile(pattern));
>
>
> Best regards,
> Konstantin Kolinko
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to