Examples of AntPathMatcher


Examples of org.springframework.util.AntPathMatcher

   * Default is AntPathMatcher.
   * @see #setAllowedResources
   * @see org.springframework.util.AntPathMatcher
   */
  protected PathMatcher getPathMatcher() {
    return new AntPathMatcher();
  }
View Full Code Here

Examples of org.springframework.util.AntPathMatcher

      PathMatcher pathMatcher, boolean useSuffixPatternMatch, boolean useTrailingSlashMatch,
      List<String> fileExtensions) {

    this.patterns = Collections.unmodifiableSet(prependLeadingSlash(patterns));
    this.pathHelper = urlPathHelper != null ? urlPathHelper : new UrlPathHelper();
    this.pathMatcher = pathMatcher != null ? pathMatcher : new AntPathMatcher();
    this.useSuffixPatternMatch = useSuffixPatternMatch;
    this.useTrailingSlashMatch = useTrailingSlashMatch;
    if (fileExtensions != null) {
      for (String fileExtension : fileExtensions) {
        if (fileExtension.charAt(0) != '.') {
View Full Code Here

Examples of org.springframework.util.AntPathMatcher

  public PathMatcher mvcPathMatcher() {
    if (getPathMatchConfigurer().getPathMatcher() != null) {
      return getPathMatchConfigurer().getPathMatcher();
    }
    else {
      return new AntPathMatcher();
    }
  }
View Full Code Here

Examples of org.springframework.util.AntPathMatcher

    assertEquals(Collections.emptyList(), getInterceptorsForPath("/path1/secret"));
  }


  private List<HandlerInterceptor> getInterceptorsForPath(String lookupPath) {
    PathMatcher pathMatcher = new AntPathMatcher();
    List<HandlerInterceptor> result = new ArrayList<HandlerInterceptor>();
    for (Object interceptor : this.registry.getInterceptors()) {
      if (interceptor instanceof MappedInterceptor) {
        MappedInterceptor mappedInterceptor = (MappedInterceptor) interceptor;
        if (mappedInterceptor.matches(lookupPath, pathMatcher)) {
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.