org.securityfilter.filter
Class URLPatternFactory

java.lang.Object
  extended byorg.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
           
 
Constructor Summary
URLPatternFactory()
          Constructor
 
Method Summary
 URLPattern createURLPattern(String pattern, SecurityConstraint constraint, WebResourceCollection resourceCollection, int order)
          Create a URLPattern instance.
 URLPatternMatcher createURLPatternMatcher()
          Create a URLPatternMatcher object that is compatible with the URLPattern objects created by this Facotry class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

compiler

protected org.apache.oro.text.regex.PatternCompiler compiler
Constructor Detail

URLPatternFactory

public URLPatternFactory()
Constructor

Method Detail

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 syntax
constraint - SecurityConstraint object to associate with this pattern
resourceCollection - WebResourceCollection to associate with this pattern
order - order in which this pattern appeared in the config file
Throws:
Exception