Example usage for org.springframework.security.web.access.intercept RequestKey RequestKey

List of usage examples for org.springframework.security.web.access.intercept RequestKey RequestKey

Introduction

In this page you can find the example usage for org.springframework.security.web.access.intercept RequestKey RequestKey.

Prototype

public RequestKey(String url, String method) 

Source Link

Usage

From source file:com.xyz.system.service.impl.DefinitionSourceFactoryBean.java

/**
 * resourceDetailService??LinkedHashMap<String, String>?URL??
 * DefaultFilterInvocationDefinitionSource?LinkedHashMap<RequestKey, ConfigAttributeDefinition>?.
 *///from   ww w  .j  a va 2s .co m
protected LinkedHashMap<RequestKey, Collection<ConfigAttribute>> buildRequestMap() throws Exception {
    LinkedHashMap<String, String> srcMap = securityManager.getRequestMap();
    LinkedHashMap<RequestKey, Collection<ConfigAttribute>> distMap = new LinkedHashMap<RequestKey, Collection<ConfigAttribute>>();

    for (Map.Entry<String, String> entry : srcMap.entrySet()) {
        RequestKey key = new RequestKey(entry.getKey(), null);
        if (StringUtils.isNotBlank(entry.getValue())) {
            distMap.put(key, SecurityConfig.createListFromCommaDelimitedString(entry.getValue()));
        }
    }

    return distMap;
}