@ Required public void setUrlRestrictions ( Map < String , String > restrictions ) { urlRestrictions = new LinkedHashMap <> ( ) ; ExpressionParser parser = new SpelExpressionParser ( ) ; for ( Map . Entry < String , String > entry : restrictions . entrySet ( ) ) { urlRestrictions . put ( entry . getKey ( ) , parser . parseExpression ( entry . getValue ( ) ) ) ; } }
Sets the map of restrictions . Each key of the map is ANT - style path pattern used to match the URLs of incoming requests and each value is a Spring EL expression .