public class SPECCHIOClientFactory
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
addAccountConfiguration(SPECCHIOServerDescriptor d)
Add the configuration for an account to the configuration file.
|
SPECCHIOClient |
createClient(SPECCHIOServerDescriptor app)
Connect to a SPECCHIO web application server.
|
java.util.List<SPECCHIOServerDescriptor> |
getAllServerDescriptors()
Return the list of known web application servers.
|
static java.lang.String |
getApplicationFilepath(java.lang.String name) |
static SPECCHIOClientFactory |
getInstance()
Return the single instance of the SPECCHIO web client factory.
|
void |
reloadDBConfigFile() |
void |
updateAccountConfiguration(SPECCHIOServerDescriptor d)
update the configuration of an existing account.
|
public void addAccountConfiguration(SPECCHIOServerDescriptor d) throws java.io.IOException, SPECCHIOClientException
d - the descriptor of the server on which the new account existsjava.io.IOException - file errorSPECCHIOClientException - invalid configuration datapublic void updateAccountConfiguration(SPECCHIOServerDescriptor d) throws java.io.IOException, SPECCHIOClientException
d - the descriptor of the server on which the new account existsjava.io.IOException - file errorSPECCHIOClientException - invalid configuration datapublic static java.lang.String getApplicationFilepath(java.lang.String name)
public SPECCHIOClient createClient(SPECCHIOServerDescriptor app) throws SPECCHIOClientException
app - the descriptor of the SPECCHIO web application to which to connectSPECCHIOClientException - could not create the clientpublic static SPECCHIOClientFactory getInstance() throws SPECCHIOClientException
SPECCHIOWebClientException - the configuration file is invalidSPECCHIOClientExceptionpublic java.util.List<SPECCHIOServerDescriptor> getAllServerDescriptors()
public void reloadDBConfigFile()