SecurityConstraintImpl( Element root ) throws SAXException { final NodeList roleNames = root.getElementsByTagName( "role-name" ); for (int i = 0; i < roleNames.getLength(); i++) _roleList.add( XMLUtils.getTextValue( roleNames.item( i ) ) ); final NodeList resources = root.getElementsByTagName( "web-resource-collection" ); for (int i = 0; i < resources.getLength(); i++) _resources.add( new WebResourceCollection( (Element) resources.item( i ) ) ); }
public WebResourceCollection getMatchingCollection( String urlPath ) { for (Iterator i = _resources.iterator(); i.hasNext();) { WebResourceCollection wrc = (WebResourceCollection) i.next(); if (wrc.controlsPath( urlPath )) return wrc; } return null; }
public WebResourceCollection getMatchingCollection( String urlPath ) { for (Iterator i = _resources.iterator(); i.hasNext();) { WebResourceCollection wrc = (WebResourceCollection) i.next(); if (wrc.controlsPath( urlPath )) return wrc; } return null; }
SecurityConstraintImpl( Element root ) throws SAXException { final NodeList roleNames = root.getElementsByTagName( "role-name" ); for (int i = 0; i < roleNames.getLength(); i++) _roleList.add( XMLUtils.getTextValue( roleNames.item( i ) ) ); final NodeList resources = root.getElementsByTagName( "web-resource-collection" ); for (int i = 0; i < resources.getLength(); i++) _resources.add( new WebResourceCollection( (Element) resources.item( i ) ) ); }
public WebResourceCollection getMatchingCollection( String urlPath ) { for (Iterator i = _resources.iterator(); i.hasNext();) { WebResourceCollection wrc = (WebResourceCollection) i.next(); if (wrc.controlsPath( urlPath )) return wrc; } return null; }
SecurityConstraintImpl( Element root ) throws SAXException { final NodeList roleNames = root.getElementsByTagName( "role-name" ); for (int i = 0; i < roleNames.getLength(); i++) _roleList.add( XMLUtils.getTextValue( roleNames.item( i ) ) ); final NodeList resources = root.getElementsByTagName( "web-resource-collection" ); for (int i = 0; i < resources.getLength(); i++) _resources.add( new WebResourceCollection( (Element) resources.item( i ) ) ); }