⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 urlpatternfactory.java.svn-base

📁 用于JAVA的Web的权限过滤器
💻 SVN-BASE
字号:
package dev.trade.common.securityfilter.filter;

import org.apache.oro.text.regex.*;
import dev.trade.common.securityfilter.config.*;

/**
 * URLPatternFactory creates URLPattern instances. It keeps a Perl5PatternCompiler to use
 * for the creation of a set of instances.
 */
public class URLPatternFactory {
   protected PatternCompiler compiler;

   /**
    * Constructor
    */
   public URLPatternFactory() {
      compiler = new Perl5Compiler();
   }

   /**
    * Create a URLPatternMatcher object that is compatible with the URLPattern
    * objects created by this Facotry class.
    *
    * @return a URLPatternMatcher object compatible with the URLPatterns created by this class
    */
   public URLPatternMatcher createURLPatternMatcher() {
      return new URLPatternMatcher();
   }

   /**
    * Create a URLPattern instance.
    *
    * @param pattern url pattern in config file syntax
    * @param constraint SecurityConstraint object to associate with this pattern
    * @param resourceCollection WebResourceCollection to associate with this pattern
    * @param order order in which this pattern appeared in the config file
    *
    * @exception Exception
    */
   public URLPattern createURLPattern(
      String pattern,
      SecurityConstraint constraint,
      WebResourceCollection resourceCollection,
      int order
   ) throws Exception {
      return new URLPattern(pattern, constraint, resourceCollection, order, compiler);
   }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -