Package com.alibaba.dubbo.registry.common.domain

Examples of com.alibaba.dubbo.registry.common.domain.Access


        for(Route route :routes){
            Map<String, MatchPair> rule = RouteRule.parseRule(route.getMatchRule());
            MatchPair pair = rule.get("consumer.host");
            if(pair != null){
                for(String host : pair.getMatches()){
                    Access access = new Access();
                    access.setAddress(host);
                    access.setService(route.getService());
                    access.setAllow(false);
                    accesses.add(access);
                }
                for(String host : pair.getUnmatches()){
                    Access access = new Access();
                    access.setAddress(host);
                    access.setService(route.getService());
                    access.setAllow(true);
                    accesses.add(access);
                }
            }
        }
        context.put("accesses", accesses);
View Full Code Here

TOP

Related Classes of com.alibaba.dubbo.registry.common.domain.Access

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.