Example usage for org.springframework.util AntPathMatcher extractUriTemplateVariables

List of usage examples for org.springframework.util AntPathMatcher extractUriTemplateVariables

Introduction

In this page you can find the example usage for org.springframework.util AntPathMatcher extractUriTemplateVariables.

Prototype

@Override
    public Map<String, String> extractUriTemplateVariables(String pattern, String path) 

Source Link

Usage

From source file:reconf.server.services.security.SecurityAccessDecisionManager.java

private boolean continueToProduct(Authentication authentication, AntPathMatcher antMatcher, String pattern,
        String url) {//from w w w .  ja  va2 s  .c o  m
    Map<String, String> parameters = antMatcher.extractUriTemplateVariables(pattern, url);
    Product product = new Product(parameters.get("product"));
    return isAuthorized(authentication, product.getName());
}