Package org.springframework.security.web.util

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


            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

            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

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

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

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

TOP

Related Classes of org.springframework.security.web.util.AntUrlPathMatcher

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.