org.eclipse.ecf.server.generic.app
Class ServerConfigParser
java.lang.Object
org.eclipse.ecf.server.generic.app.ServerConfigParser
public class ServerConfigParser
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERVER_ELEMENT
public static final java.lang.String SERVER_ELEMENT
- See Also:
- Constant Field Values
CONNECTOR_ELEMENT
public static final java.lang.String CONNECTOR_ELEMENT
- See Also:
- Constant Field Values
GROUP_ELEMENT
public static final java.lang.String GROUP_ELEMENT
- See Also:
- Constant Field Values
PROTOCOL_ATTR
public static final java.lang.String PROTOCOL_ATTR
- See Also:
- Constant Field Values
HOSTNAME_ATTR
public static final java.lang.String HOSTNAME_ATTR
- See Also:
- Constant Field Values
PORT_ATTR
public static final java.lang.String PORT_ATTR
- See Also:
- Constant Field Values
TIMEOUT_ATTR
public static final java.lang.String TIMEOUT_ATTR
- See Also:
- Constant Field Values
NAME_ATTR
public static final java.lang.String NAME_ATTR
- See Also:
- Constant Field Values
ServerConfigParser
public ServerConfigParser()
findElementsNamed
protected void findElementsNamed(org.w3c.dom.Node top,
java.lang.String name,
java.util.List aList)
processConnectorNodes
protected java.util.List processConnectorNodes(java.util.List connectorNodes)
processConnector
protected void processConnector(org.w3c.dom.Node n,
Connector c)
loadConnectors
protected java.util.List loadConnectors(org.w3c.dom.Document doc)
getAttributeValue
protected java.lang.String getAttributeValue(org.w3c.dom.Node node,
java.lang.String attrName)
load
public java.util.List load(java.io.InputStream ins)
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException,
java.io.IOException
- Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Throws:
java.lang.Exception