public class SoaParserPasswords
extends java.lang.Object
Constructor and Description |
---|
SoaParserPasswords()
Create a new instance of SoaParserPasswords.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAdminDoc(java.lang.String serviceID)
Get the service admin doc file path.
|
java.lang.String |
getAdminKey(java.lang.String serviceID)
Get the service admin key.
|
java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> |
getAllPasswords()
Get the list of all password values for each service.
|
java.lang.String |
getPassword(java.lang.String serviceID)
Get the service password.
|
boolean |
getStartThread(java.lang.String serviceID)
Get the service start thread state.
|
protected java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> |
parse(org.licas_xml.abs.Element passwordsElem)
Parse the passwords description to add all service passwords.
|
protected org.licas_xml.abs.Element |
serialize(java.lang.String password,
java.lang.String adminKey)
Serialise all passwords for all services on the server into XML.
|
public SoaParserPasswords()
protected 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.protected java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> parse(org.licas_xml.abs.Element passwordsElem) throws java.lang.Exception
passwordsElem
- the root passwords element.java.lang.Exception
- any error.public boolean getStartThread(java.lang.String serviceID) throws java.lang.Exception
serviceID
- the id of the service to retrieve.java.lang.Exception
- any error.public java.lang.String getPassword(java.lang.String serviceID) throws java.lang.Exception
serviceID
- the id of the service to retrieve.java.lang.Exception
- any error.public java.lang.String getAdminKey(java.lang.String serviceID) throws java.lang.Exception
serviceID
- the id of the service to retrieve.java.lang.Exception
- any error.public java.lang.String getAdminDoc(java.lang.String serviceID) throws java.lang.Exception
serviceID
- the id of the service to retrieve.java.lang.Exception
- any error.public java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> getAllPasswords()