private void parseProperty(Map<String, String> map) { // cursor --> START_ELEMENT of property // it has 2 attributes: name and value Map<String, String> prop = parseAttributes(); String name = prop.get("name"); String value = prop.get("value"); if (name != null) { map.put(name, value); } }
private void parseProperty(Map<String, String> map) { // cursor --> START_ELEMENT of property // it has 2 attributes: name and value Map<String, String> prop = parseAttributes(); String name = prop.get("name"); String value = prop.get("value"); if (name != null) { map.put(name, value); } }
private void parseSecureAdmin() { Map<String,String> secureAdminProperties = parseAttributes(); if (secureAdminProperties.containsKey("enabled")) { String value = secureAdminProperties.get("enabled"); if("true".equals(value)) { secureAdminEnabled = true; } } }
private void parseSecureAdmin() { Map<String,String> secureAdminProperties = parseAttributes(); if (secureAdminProperties.containsKey("enabled")) { String value = secureAdminProperties.get("enabled"); if("true".equals(value)) { secureAdminEnabled = true; } } }
private void parseListeners() throws XMLStreamException, EndDocumentException { // cursor --> START_ELEMENT of network-listeners while (true) { skipToButNotPast("network-listeners", "network-listener"); final String name = parser.getLocalName(); if ("network-listener".equals(name)) { listenerAttributes.add(parseAttributes()); } else if ("network-listeners".equals(name)) { break; } } }
private void parseProtocols() throws XMLStreamException, EndDocumentException { // cursor --> START_ELEMENT of protocols while (true) { skipToButNotPast("protocols", "protocol"); final String name = parser.getLocalName(); if ("protocol".equals(name)) { protocolAttributes.add(parseAttributes()); } else if ("protocols".equals(name)) { break; } } }
private void parseSystemProperty(SysPropsHandler.Type type) { // cursor --> <system-property> Map<String, String> map = parseAttributes(); String name = map.get("name"); String value = map.get("value"); if (name != null) { sysProps.add(type, name, value); } }
private void parseSystemProperty(SysPropsHandler.Type type) { // cursor --> <system-property> Map<String, String> map = parseAttributes(); String name = map.get("name"); String value = map.get("value"); if (name != null) { sysProps.add(type, name, value); } }
private void parseAdminService() throws XMLStreamException, EndDocumentException { Map<String, String> attributes = null; skipToButNotPast("admin-service", "jmx-connector"); String name = parser.getLocalName(); if ("jmx-connector".equals(name)) { attributes = parseAttributes(); adminRealm = attributes.get("auth-realm-name"); } }
private void parseProtocols() throws XMLStreamException, EndDocumentException { // cursor --> START_ELEMENT of protocols while (true) { skipToButNotPast("protocols", "protocol"); final String name = parser.getLocalName(); if ("protocol".equals(name)) { protocolAttributes.add(parseAttributes()); } else if ("protocols".equals(name)) { break; } } }
private void parseListeners() throws XMLStreamException, EndDocumentException { // cursor --> START_ELEMENT of network-listeners while (true) { skipToButNotPast("network-listeners", "network-listener"); final String name = parser.getLocalName(); if ("network-listener".equals(name)) { listenerAttributes.add(parseAttributes()); } else if ("network-listeners".equals(name)) { break; } } }
private void parseProtocols() throws XMLStreamException, EndDocumentException { // cursor --> START_ELEMENT of protocols while (true) { skipToButNotPast("protocols", "protocol"); final String name = parser.getLocalName(); if ("protocol".equals(name)) { protocolAttributes.add(parseAttributes()); } else if ("protocols".equals(name)) { break; } } }
private void parseJavaConfig() throws XMLStreamException, EndDocumentException { // cursor --> <java-config> // get the attributes for <java-config> javaConfig = parseAttributes(); parseJvmAndProfilerOptions(); }
private void parseAdminService() throws XMLStreamException, EndDocumentException { Map<String, String> attributes = null; skipToButNotPast("admin-service", "jmx-connector"); String name = parser.getLocalName(); if ("jmx-connector".equals(name)) { attributes = parseAttributes(); adminRealm = attributes.get("auth-realm-name"); } }
private void parseJavaConfig() throws XMLStreamException, EndDocumentException { // cursor --> <java-config> // get the attributes for <java-config> javaConfig = parseAttributes(); parseJvmAndProfilerOptions(); }
private void parseJavaConfig() throws XMLStreamException, EndDocumentException { // cursor --> <java-config> // get the attributes for <java-config> javaConfig = parseAttributes(); parseJvmAndProfilerOptions(); }
private void parseSystemProperty(SysPropsHandler.Type type) { // cursor --> <system-property> Map<String, String> map = parseAttributes(); String name = map.get("name"); String value = map.get("value"); if (name != null) { sysProps.add(type, name, value); } }
private void parseClusters() throws XMLStreamException, EndDocumentException { // cursor ==> clusters // if there is more than one clusters element (!weird!) only use the last one clusters = new ArrayList<ParsedCluster>(); while (skipToButNotPast("clusters", "cluster")) { // cursor ==> "cluster" ParsedCluster pc = new ParsedCluster(parseAttributes().get("name")); clusters.add(pc); parseCluster(pc); } }
private void parseClusters() throws XMLStreamException, EndDocumentException { // cursor ==> clusters // if there is more than one clusters element (!weird!) only use the last one clusters = new ArrayList<ParsedCluster>(); while (skipToButNotPast("clusters", "cluster")) { // cursor ==> "cluster" ParsedCluster pc = new ParsedCluster(parseAttributes().get("name")); clusters.add(pc); parseCluster(pc); } }
private void parseClusters() throws XMLStreamException, EndDocumentException { // cursor ==> clusters // if there is more than one clusters element (!weird!) only use the last one clusters = new ArrayList<ParsedCluster>(); while (skipToButNotPast("clusters", "cluster")) { // cursor ==> "cluster" ParsedCluster pc = new ParsedCluster(parseAttributes().get("name")); clusters.add(pc); parseCluster(pc); } }