org.securityfilter.filter
Class URLPatternFactory
java.lang.Object
org.securityfilter.filter.URLPatternFactory
- public class URLPatternFactory
- extends Object
URLPatternFactory creates URLPattern instances. It keeps a Perl5PatternCompiler to use
for the creation of a set of instances.
- Version:
- $Revision: 1.1 $ $Date: 2004/07/03 20:53:45 $
- Author:
- Max Cooper (max@maxcooper.com)
|
Field Summary |
protected org.apache.oro.text.regex.PatternCompiler |
compiler
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
compiler
protected org.apache.oro.text.regex.PatternCompiler compiler
URLPatternFactory
public URLPatternFactory()
- Constructor
createURLPatternMatcher
public URLPatternMatcher createURLPatternMatcher()
- Create a URLPatternMatcher object that is compatible with the URLPattern
objects created by this Facotry class.
- Returns:
- a URLPatternMatcher object compatible with the URLPatterns created by this class
createURLPattern
public URLPattern createURLPattern(String pattern,
SecurityConstraint constraint,
WebResourceCollection resourceCollection,
int order)
throws Exception
- Create a URLPattern instance.
- Parameters:
pattern - url pattern in config file syntaxconstraint - SecurityConstraint object to associate with this patternresourceCollection - WebResourceCollection to associate with this patternorder - order in which this pattern appeared in the config file
- Throws:
Exception