Examples of AntPathMatcher


Examples of cn.org.rapid_framework.generator.util.AntPathMatcher

        GLogger.println("[skip]\t\t endsWith '.include' template:"+templateFile);
        return true;
      }
      templateFile = templateFile.replace('\\', '/');
      for(String exclude : StringHelper.tokenizeToStringArray(excludes,",")) {
        if(new AntPathMatcher().match(exclude.replace('\\', '/'), templateFile)) return true;
      }
      if(StringHelper.isBlank(includes)) {
        return false;
      }
      for(String include : StringHelper.tokenizeToStringArray(includes,",")) {
        if(new AntPathMatcher().match(include.replace('\\', '/'), templateFile)) return false;
      }
      return true;
    }   
View Full Code Here

Examples of cn.org.rapid_framework.generator.util.AntPathMatcher

        GLogger.println("[skip]\t\t endsWith '.include' template:"+templateFile);
        return true;
      }
      templateFile = templateFile.replace('\\', '/');
      for(String exclude : StringHelper.tokenizeToStringArray(excludes,",")) {
        if(new AntPathMatcher().match(exclude.replace('\\', '/'), templateFile)) return true;
      }
      if(includes == null) return false;
      for(String include : StringHelper.tokenizeToStringArray(includes,",")) {
        if(new AntPathMatcher().match(include.replace('\\', '/'), templateFile)) return false;
      }
      return true;
    }   
View Full Code Here

Examples of com.bj58.argo.thirdparty.AntPathMatcher

*/
public class PathMatcherTest {

    @Test
    public void test() {
        PathMatcher pathMatcher = new AntPathMatcher();

        String pattern = "/{a}/{b}/{c}";

        String sample = "/aa/bb/cc";

        Assert.assertTrue(pathMatcher.match(pattern, sample));

    }
View Full Code Here

Examples of org.apache.camel.util.AntPathMatcher

    private final AntPathMatcher matcher;
    private final String pattern;

    public DirectVmConsumerExpression(String pattern) {
        this.matcher = new AntPathMatcher();
        this.pattern = pattern;
    }
View Full Code Here

Examples of org.apache.shiro.util.AntPathMatcher

        verify(mock);
    }

    @Test
    public void testSetters() {
        resolver.setPathMatcher(new AntPathMatcher());
        assertNotNull(resolver.getPathMatcher());
        assertTrue(resolver.getPathMatcher() instanceof AntPathMatcher);
        resolver.setFilterChainManager(new DefaultFilterChainManager());
        assertNotNull(resolver.getFilterChainManager());
        assertTrue(resolver.getFilterChainManager() instanceof DefaultFilterChainManager);
View Full Code Here

Examples of org.apache.shiro.util.AntPathMatcher

    private FilterChainManager filterChainManager;

    private PatternMatcher pathMatcher;

    public PathMatchingFilterChainResolver() {
        this.pathMatcher = new AntPathMatcher();
        this.filterChainManager = new DefaultFilterChainManager();
    }
View Full Code Here

Examples of org.apache.shiro.util.AntPathMatcher

        this.pathMatcher = new AntPathMatcher();
        this.filterChainManager = new DefaultFilterChainManager();
    }

    public PathMatchingFilterChainResolver(FilterConfig filterConfig) {
        this.pathMatcher = new AntPathMatcher();
        this.filterChainManager = new DefaultFilterChainManager(filterConfig);
    }
View Full Code Here

Examples of org.apache.shiro.util.AntPathMatcher

        verify(mock);
    }

    @Test
    public void testSetters() {
        resolver.setPathMatcher(new AntPathMatcher());
        assertNotNull(resolver.getPathMatcher());
        assertTrue(resolver.getPathMatcher() instanceof AntPathMatcher);
        resolver.setFilterChainManager(new DefaultFilterChainManager());
        assertNotNull(resolver.getFilterChainManager());
        assertTrue(resolver.getFilterChainManager() instanceof DefaultFilterChainManager);
View Full Code Here

Examples of org.eclipse.m2e.wtp.internal.AntPathMatcher

  private final static String REGEX_END = "]"; //$NON-NLS-1$

  public PackagingConfiguration(String[] packagingIncludes, String[] packagingExcludes) {
    this.packagingIncludes = toPortablePathArray(packagingIncludes);
    this.packagingExcludes = toPortablePathArray(packagingExcludes);
    matcher = new AntPathMatcher();
  }
View Full Code Here

Examples of org.springframework.util.AntPathMatcher

  private boolean isAllowed(String resourcePath) {
    if (resourcePath.matches(PROTECTED_PATH)) {
      return false;
    }
    PathMatcher pathMatcher = new AntPathMatcher();
    for (String pattern : ALLOWED_RESOURCE_PATHS) {
      if (pathMatcher.match(pattern, resourcePath)) {
        return true;
      }
    }
    return false;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.