private void findOtherStuff() { try { // find the domain name and/or clusters, if it is there // If we bump into the domain end tag first -- no sweat // // notice how everything is MUCH more difficult to understand because // we are going through domain.xml in one long relentless sweep and // we can't back up! while (skipToButNotPast("domain", "property", "clusters", "system-property")) { String name = parser.getLocalName(); if ("clusters".equals(name)) parseClusters(); else if ("system-property".equals(name)) parseSystemProperty(SysPropsHandler.Type.DOMAIN); else if ("property".equals(name)) parseDomainProperty(); // property found -- maybe it is the domain name? } if (domainName == null) { Logger.getLogger(MiniXmlParser.class.getName()).log( Level.INFO, strings.get("noDomainName")); } } catch (Exception e) { throw new RuntimeException(strings.get("noDomainEnd")); } }
private void findOtherStuff() { try { // find the domain name and/or clusters, if it is there // If we bump into the domain end tag first -- no sweat // // notice how everything is MUCH more difficult to understand because // we are going through domain.xml in one long relentless sweep and // we can't back up! while (skipToButNotPast("domain", "property", "clusters", "system-property","secure-admin")) { String name = parser.getLocalName(); if ("clusters".equals(name)) parseClusters(); else if ("system-property".equals(name)) parseSystemProperty(SysPropsHandler.Type.DOMAIN); else if ("property".equals(name)) parseDomainProperty(); // property found -- maybe it is the domain name? else if("secure-admin".equals(name)) parseSecureAdmin(); } if (domainName == null) { Logger.getLogger(MiniXmlParser.class.getName()).log( Level.INFO, strings.get("noDomainName")); } } catch (Exception e) { throw new RuntimeException(strings.get("noDomainEnd")); } }
private void findOtherStuff() { try { // find the domain name and/or clusters, if it is there // If we bump into the domain end tag first -- no sweat // // notice how everything is MUCH more difficult to understand because // we are going through domain.xml in one long relentless sweep and // we can't back up! while (skipToButNotPast("domain", "property", "clusters", "system-property","secure-admin")) { String name = parser.getLocalName(); if ("clusters".equals(name)) parseClusters(); else if ("system-property".equals(name)) parseSystemProperty(SysPropsHandler.Type.DOMAIN); else if ("property".equals(name)) parseDomainProperty(); // property found -- maybe it is the domain name? else if("secure-admin".equals(name)) parseSecureAdmin(); } if (domainName == null) { Logger.getLogger(MiniXmlParser.class.getName()).log( Level.INFO, strings.get("noDomainName")); } } catch (Exception e) { throw new RuntimeException(strings.get("noDomainEnd")); } }
parseClusters(); else if ("system-property".equals(name)) parseSystemProperty(SysPropsHandler.Type.DOMAIN);
parseClusters(); else if ("system-property".equals(name)) parseSystemProperty(SysPropsHandler.Type.DOMAIN);
parseClusters(); else if ("system-property".equals(name)) parseSystemProperty(SysPropsHandler.Type.DOMAIN);
parseClusters(); else if ("system-property".equals(name)) parseSystemProperty(SysPropsHandler.Type.DOMAIN);
parseClusters(); else if ("system-property".equals(name)) parseSystemProperty(SysPropsHandler.Type.DOMAIN);
parseClusters(); else if ("system-property".equals(name)) parseSystemProperty(SysPropsHandler.Type.DOMAIN);