Examples of SecurityCollectionDecorator


Examples of com.sun.enterprise.web.deploy.SecurityCollectionDecorator

                                                  
        Enumeration enumeration = wmd.getSecurityConstraints();
        SecurityConstraint securityConstraint;
        SecurityConstraintDecorator decorator;
        Enumeration enumeration2;
        SecurityCollectionDecorator secCollDecorator;
        while (enumeration.hasMoreElements()){
            securityConstraint =(SecurityConstraint)enumeration.nextElement();
            
            decorator = new SecurityConstraintDecorator(securityConstraint,
                                                        webModule);
           
            enumeration2 = securityConstraint.getWebResourceCollections();
            while (enumeration2.hasMoreElements()){
                secCollDecorator = new SecurityCollectionDecorator
                            ((WebResourceCollection) enumeration2.nextElement());
                  
                decorator.addCollection(secCollDecorator);          
            }
            webModule.addConstraint(decorator);
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.