Package org.springframework.util

Examples of org.springframework.util.AntPathMatcher$AntPathStringMatcher


  }

  @Test
  public void prependSlashWithCustomPathSeparator() {
    DestinationPatternsMessageCondition c =
        new DestinationPatternsMessageCondition(new String[] {"foo"}, new AntPathMatcher("."));

    assertEquals("Pre-pending should be disabled when not using '/' as path separator",
        "foo", c.getPatterns().iterator().next());
  }
View Full Code Here


      url += typeLevelRequestMapping.value()[0];
    }

    PathMatcher pathMatcher = this.context.getPathMatcher();
    if (pathMatcher == null) {
      pathMatcher = new AntPathMatcher();
    }
    url = pathMatcher.combine(url, methodRequestMapping.value()[0]);
    if (!url.startsWith("/")) {
      url = "/" + url;
    }
View Full Code Here

   */
  private PathPatternProcessorDecorator(final Object processor, final boolean includes, final String... patterns) {
    super(processor);
    notEmpty(patterns, "A pattern set is required.");
    this.includes = includes;
    matcher = new AntPathMatcher();
    this.patterns = patterns;
    LOG.debug("{} patterns {}", includes ? "include" : "exclude", Arrays.toString(patterns));
  }
View Full Code Here

  public PathPatternDecorator(final Object processor, final boolean includes,
      final String... patterns) {
    super(processor);
    notEmpty(patterns, "A pattern set is required.");
    this.includes = includes;
    matcher = new AntPathMatcher();
    this.patterns = patterns;
  }
View Full Code Here

  private AntPathMatcher matcher;

  private JavaElementLabelProvider javaLabelProvider;

  public RequestMappingViewLabelProvider() {
    matcher = new AntPathMatcher();
    javaLabelProvider = new JavaElementLabelProvider();
  }
View Full Code Here

  private int sortDirection;

  public RequestMappingViewSorter(
      RequestMappingViewLabelProvider labelProvider) {
    matcher = new AntPathMatcher();
    this.labelProvider = labelProvider;
  }
View Full Code Here

      }
    }
  }

  private boolean shouldExclude(File file) {
    AntPathMatcher pathMatcher = new AntPathMatcher();
    for (String exclusionPattern : processingInfo.getExclusionPatterns()) {
      if (pathMatcher.match(exclusionPattern, file.getAbsolutePath().replace('\\', '/'))) {
        return true;
      }
    }
    return false;
  }
View Full Code Here

TOP

Related Classes of org.springframework.util.AntPathMatcher$AntPathStringMatcher

Copyright © 2018 www.massapicom. 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.