1 23 package com.sun.enterprise.tools.verifier.tests.web; 24 import java.util.*; 25 import com.sun.enterprise.deployment.*; 26 import com.sun.enterprise.deployment.web.SecurityConstraint; 27 import com.sun.enterprise.deployment.web.WebResourceCollection; 28 29 public class URLPatternUniqueInSecurityConstraints extends URLPatternUnique{ 30 protected Collection getUrlPatterns(WebBundleDescriptor descriptor) { 31 ArrayList<Object >patterns=new ArrayList<Object >(); 32 for (Enumeration e=descriptor.getSecurityConstraints(); e.hasMoreElements();){ 33 for (Enumeration ee = ((SecurityConstraint) e.nextElement()).getWebResourceCollections(); ee.hasMoreElements();) { 34 for (Enumeration eee=((WebResourceCollection) ee.nextElement()).getUrlPatterns(); eee.hasMoreElements();) { 35 patterns.add(eee.nextElement()); 36 } 37 } 38 } 39 return patterns; 40 } 41 } 42 | Popular Tags |