Examples of AntUrlPathMatcher


Examples of org.springframework.security.web.util.AntUrlPathMatcher

    String uri = request.getRequestURI();
    if (uri == null) {
      return null;
    }
    if (this.defaultFilterInvocationSecurityMetadataSource == null) {
      UrlMatcher matcher = new AntUrlPathMatcher();
      LinkedHashMap<RequestKey, Collection<ConfigAttribute>> requestMap = new LinkedHashMap<RequestKey, Collection<ConfigAttribute>>();
      for (String key : this.getUrlPatterns().keySet()) {
        String value = this.getUrlPatterns().get(key);
        Collection<ConfigAttribute> elements = new ArrayList<ConfigAttribute>();
        elements.add(new SecurityConfig(value));
View Full Code Here

Examples of org.springframework.security.web.util.AntUrlPathMatcher

            patternType = DEF_PATH_TYPE_ANT;
        }

        boolean useRegex = patternType.equals(OPT_PATH_TYPE_REGEX);

        UrlMatcher matcher = new AntUrlPathMatcher();

        if (useRegex) {
            matcher = new RegexUrlPathMatcher();
        }
View Full Code Here

Examples of org.springframework.security.web.util.AntUrlPathMatcher

            patternType = DEF_PATH_TYPE_ANT;
        }

        boolean useRegex = patternType.equals(OPT_PATH_TYPE_REGEX);

        UrlMatcher matcher = new AntUrlPathMatcher();

        if (useRegex) {
            matcher = new RegexUrlPathMatcher();
        }
View Full Code Here

Examples of org.springframework.security.web.util.AntUrlPathMatcher

   * 返回注入了Ant Style的URLMatcher
   * 和ResourceDetailService提供的RequestMap的DefaultFilterInvocationDefinitionSource.
   */
  public Object getObject() throws Exception {
    DefaultFilterInvocationSecurityMetadataSource df = new DefaultFilterInvocationSecurityMetadataSource(
        new AntUrlPathMatcher(), buildRequestMap());
    return df;
  }
View Full Code Here

Examples of org.springframework.security.web.util.AntUrlPathMatcher

  /**
   * 提供Ant Style的URLMatcher.
   */
  protected UrlMatcher getUrlMatcher() {
    return new AntUrlPathMatcher();
  }
View Full Code Here

Examples of org.springframework.security.web.util.AntUrlPathMatcher

import com.loc.security.MySecurityMetadataSource;

public class MyTest{
  //@Test
  public void run() throws Exception{
    UrlMatcher urlMatcher = new AntUrlPathMatcher();
    String url="/**";
    String resURL="/index.jsp";
    boolean b = urlMatcher.pathMatchesUrl(resURL, url);
    System.out.println(b);
  }
View Full Code Here

Examples of org.zkoss.spring.security.util.AntUrlPathMatcher

        if (pathType.equals(OPT_PATH_TYPE_REGEX)) {
          final UrlMatcher matcher = new RegexUrlPathMatcher();
          ((RegexUrlPathMatcher)matcher).setRequiresLowerCaseUrl(false);
          return matcher;
        } else {
          final UrlMatcher matcher = new AntUrlPathMatcher();
          ((AntUrlPathMatcher)matcher).setRequiresLowerCaseUrl(false);
          return matcher;
        }
    }
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.