Re: RemoteAddrValve syntax

2009-04-05 Thread Jonathan Mast
I looked at the javadocs for the RemoteAddrValve and they provided no further clarity on the syntax issue. You're right, my test case mistakenly returned a false positive, ".*" could match anything its true and their is no "common sense" wildcard in the Java Regex package. I looked at the javadoc

Re: RemoteAddrValve syntax

2009-04-05 Thread André Warnier
André Warnier wrote: [...] To match any address starting with "192.168.", use or (if you want to be really finicky about it) What is not very clear in the on-line Tomcat documentation, is whether a remote client address of 192.168.1.2 would be translated to the string "192.168.1.2" by Tomca

RE: RemoteAddrValve syntax

2009-04-05 Thread Caldarale, Charles R
> From: Jonathan Mast [mailto:jhmast.develo...@gmail.com] > Subject: RemoteAddrValve syntax > > The Tomcat docs says it uses the java.util.regex package But you apparently didn't read the doc for java.util.regex, which is not anything like the wildcards you tried to use: ht

Re: RemoteAddrValve syntax

2009-04-05 Thread André Warnier
Jonathan Mast wrote: How do I specify wildcards in the RemoteAddrValue declaration? The Tomcat docs says it uses the java.util.regex package, so i wrote a test case like this: String patternStr = "192.168.*.*"; String searchStr = "192.168.1.2"; Pattern p = Pattern.compi

RemoteAddrValve syntax

2009-04-05 Thread Jonathan Mast
How do I specify wildcards in the RemoteAddrValue declaration? The Tomcat docs says it uses the java.util.regex package, so i wrote a test case like this: String patternStr = "192.168.*.*"; String searchStr = "192.168.1.2"; Pattern p = Pattern.compile(patternStr);