/*
- * $Header: /cvsroot/securityfilter/securityfilter/src/share/org/securityfilter/filter/URLPattern.java,v 1.1 2002/12/17 15:10:00 maxcooper Exp $
- * $Revision: 1.1 $
- * $Date: 2002/12/17 15:10:00 $
+ * $Header: /cvsroot/securityfilter/securityfilter/src/share/org/securityfilter/filter/URLPattern.java,v 1.2 2003/01/02 19:21:28 maxcooper Exp $
+ * $Revision: 1.2 $
+ * $Date: 2003/01/02 19:21:28 $
*
* ====================================================================
* The SecurityFilter Software License, Version 1.1
* Also supports sorting according to the Servlet Spec v2.3.
*
* @author Max Cooper (max@maxcooper.com)
- * @version $Revision: 1.1 $ $Date: 2002/12/17 15:10:00 $
+ * @version $Revision: 1.2 $ $Date: 2003/01/02 19:21:28 $
*/
public class URLPattern implements Comparable {
/**
- * Pattern type for PATH_TYPE mappings. Starts with '/' and ends with '/*'.
+ * Pattern type for patterns that do not meet the PATH_TYPE
+ * or EXTENSION_TYPE pattern type specifications.
*/
- public static final int PATH_TYPE = 1;
+ public static final int EXACT_TYPE = 1;
/**
- * Pattern type for EXTENSION_TYPE mappings. Starts with *.
+ * Pattern type for PATH_TYPE mappings. Starts with '/' and ends with '/*'.
*/
- public static final int EXTENSION_TYPE = 2;
+ public static final int PATH_TYPE = 2;
/**
- * Pattern type for patterns that do not meet the PATH_TYPE
- * or EXTENSION_TYPE pattern type specifications.
+ * Pattern type for EXTENSION_TYPE mappings. Starts with '*.'
*/
- public static final int EXACT_TYPE = 3;
+ public static final int EXTENSION_TYPE = 3;
+
protected String pattern;
protected String convertedPattern;