Examples of RegexUrlPathMatcher


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

        Element elt = (Element)node;

        String pathType = elt.getAttribute(HttpSecurityBeanDefinitionParser.ATT_PATH_TYPE);

        if (HttpSecurityBeanDefinitionParser.OPT_PATH_TYPE_REGEX.equals(pathType)) {
            filterChainProxy.getPropertyValues().addPropertyValue("matcher", new RegexUrlPathMatcher());
        }

        List<Element> filterChainElts = DomUtils.getChildElementsByTagName(elt, Elements.FILTER_CHAIN);

        for (Element chain : filterChainElts) {
View Full Code Here

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

        boolean useRegex = patternType.equals(OPT_PATH_TYPE_REGEX);

        UrlMatcher matcher = new AntUrlPathMatcher();

        if (useRegex) {
            matcher = new RegexUrlPathMatcher();
        }

        // Deal with lowercase conversion requests
        String lowercaseComparisons = element.getAttribute(ATT_LOWERCASE_COMPARISONS);
        if (!StringUtils.hasText(lowercaseComparisons)) {
View Full Code Here

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

        boolean useRegex = patternType.equals(OPT_PATH_TYPE_REGEX);

        UrlMatcher matcher = new AntUrlPathMatcher();

        if (useRegex) {
            matcher = new RegexUrlPathMatcher();
        }

        // Deal with lowercase conversion requests
        String lowercaseComparisons = element.getAttribute(ATT_LOWERCASE_COMPARISONS);
        if (!StringUtils.hasText(lowercaseComparisons)) {
View Full Code Here

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

        if (!StringUtils.hasText(pathType)) {
            pathType = DEF_PATH_TYPE_ANT;
        }

        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);
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.