public class SoaParser
extends java.lang.Object
Constructor and Description |
---|
SoaParser()
Create a new instance of SoaParser.
|
Modifier and Type | Method and Description |
---|---|
java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> |
parse(java.util.HashMap<java.lang.String,org.licas_xml.abs.Element> networkDocs,
java.lang.String password,
java.lang.String adminKey)
Parse the XML description of the network and load it onto the server.
|
java.util.HashMap<java.lang.String,org.licas_xml.abs.Element> |
serialize(java.lang.String password,
java.lang.String adminKey)
Serialise the whole network into XML.
|
void |
serializeService(Service theService,
org.licas_xml.abs.Element servicesElem)
Serialise the object of type ServiceMeta into XML.
|
public java.util.HashMap<java.lang.String,org.licas_xml.abs.Element> serialize(java.lang.String password, java.lang.String adminKey) throws java.lang.Exception
password
- the password to access the server.adminKey
- the admin key for the server.java.lang.Exception
- any error.public void serializeService(Service theService, org.licas_xml.abs.Element servicesElem) throws java.lang.Exception
theService
- a direct reference to the service object.servicesElem
- the root services element to add service metadata to.java.lang.Exception
- any error.public java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> parse(java.util.HashMap<java.lang.String,org.licas_xml.abs.Element> networkDocs, java.lang.String password, java.lang.String adminKey) throws java.lang.Exception
networkDocs
- a list of XML-based documents that describe the network
structure. The network file is identified as having the key value 'Const.NETWORK'
element, while the links document has a root 'Const.LINKS' element. The network
file at least must be present. Value is an XML element.password
- the password to access the server.adminKey
- the server admin key.java.lang.Exception
- any error.