Package org.jboss.metadata.web.spec

Examples of org.jboss.metadata.web.spec.WebResourceCollectionsMetaData


                // security-constraint
                final SecurityConstraintMetaData securityConstraint = WebMetaDataHelper
                        .newSecurityConstraint(securityConstraints);

                // web-resource-collection
                final WebResourceCollectionsMetaData webResourceCollections = WebMetaDataHelper
                        .getWebResourceCollections(securityConstraint);
                final String endpointName = ejbEndpoint.getShortName();
                final String urlPattern = ((HttpEndpoint) ejbEndpoint).getURLPattern();
                ROOT_LOGGER.creatingWebResourceCollection(endpointName, urlPattern);
                WebMetaDataHelper.newWebResourceCollection(endpointName, urlPattern, secureWsdlAccess,
View Full Code Here


/*     */     Iterator i$;
/*  91 */     if (constraints != null)
/*     */     {
/*  93 */       for (i$ = constraints.iterator(); i$.hasNext(); ) { sc = (SecurityConstraintMetaData)i$.next();
/*     */
/*  95 */         WebResourceCollectionsMetaData resources = sc.getResourceCollections();
/*  96 */         transport = sc.getTransportGuarantee();
/*  97 */         if ((sc.isExcluded()) || (sc.isUnchecked()))
/*     */         {
/* 100 */           if (resources != null) {
/* 101 */             for (WebResourceCollectionMetaData wrc : resources)
View Full Code Here

/* 408 */     List constraints = metaData.getSecurityContraints();
/* 409 */     if (constraints != null)
/*     */     {
/* 411 */       for (SecurityConstraintMetaData sc : constraints)
/*     */       {
/* 413 */         WebResourceCollectionsMetaData resources = sc.getResourceCollections();
/* 414 */         for (WebResourceCollectionMetaData wrc : resources)
/*     */         {
/* 416 */           List urlPatterns = wrc.getUrlPatterns();
/* 417 */           int length = urlPatterns != null ? urlPatterns.size() : 0;
/* 418 */           for (int n = 0; n < length; n++)
View Full Code Here

            switch (element) {
                case DISPLAY_NAME:
                    securityConstraint.setDisplayName(reader.getElementText());
                    break;
                case WEB_RESOURCE_COLLECTION:
                    WebResourceCollectionsMetaData resourceCollections = securityConstraint.getResourceCollections();
                    if (resourceCollections == null) {
                        resourceCollections = new WebResourceCollectionsMetaData();
                        securityConstraint.setResourceCollections(resourceCollections);
                    }
                    resourceCollections.add(WebResourceCollectionMetaDataParser.parse(reader));
                    break;
                case AUTH_CONSTRAINT:
                    securityConstraint.setAuthConstraint(AuthConstraintMetaDataParser.parse(reader));
                    break;
                case USER_DATA_CONSTRAINT:
View Full Code Here

                    if (acmd.getRoleNames() != null)
                        for (String role : acmd.getRoleNames()) {
                            constraint.addAuthRole(role);
                        }
                }
                WebResourceCollectionsMetaData wrcs = value.getResourceCollections();
                if (wrcs != null) {
                    for (WebResourceCollectionMetaData wrc : wrcs) {
                        org.apache.catalina.deploy.SecurityCollection collection2 = new org.apache.catalina.deploy.SecurityCollection();
                        collection2.setName(wrc.getName());
                        List<String> methods = wrc.getHttpMethods();
View Full Code Here

TOP

Related Classes of org.jboss.metadata.web.spec.WebResourceCollectionsMetaData

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.