ArrayList<Object>patterns=new ArrayList<Object>();
for (Enumeration e=descriptor.getSecurityConstraints(); e.hasMoreElements();){
for (Enumeration ee = ((SecurityConstraint) e.nextElement()).getWebResourceCollections(); ee.hasMoreElements();) {
for (Enumeration eee=((WebResourceCollection) ee.nextElement()).getUrlPatterns(); eee.hasMoreElements();) {
patterns.add(eee.nextElement());
}
}
}
return patterns;