public class AvatarsConfigManager
extends java.lang.Object
The purpose of an AvatarsConfigManager
is to ensure that
the JA_HOME preferences key is properly defined, so that a JA
app has access to the necessary avatar definition files.
An instance of this class does its main work in the
establishJAHome()
method. This method checks whether there
is a valid local setting for the JA_HOME key, and if not it either
establishes a valid remote setting for the key or, subject to user
approval, downloads the necessary files and establishes a valid local
setting for it.
The user can specify the base URL for remote avatar definition files
by setting the ja.remote.base.url
system property. If this
property is not set, an internal default is used.
This default is obtained by appending the current JASigning version
tag to the stem
http://www.visicast.cmp.uea.ac.uk/eSIGN/jasigning/
,
as defined in the DeploymentParameters
class.
Constructor and Description |
---|
AvatarsConfigManager()
Constructs a new avatars configuration manager.
|
Modifier and Type | Method and Description |
---|---|
void |
establishJAHome()
Ensures that there is a setting for the JA_HOME preferences key,
possibly after performing a local installation of the avatars folder.
|
static void |
main(java.lang.String[] args)
Main method for testing: creates a new instance and invokes
establishJAHome() on it. |
public AvatarsConfigManager()
public static void main(java.lang.String[] args)
establishJAHome()
on it.public void establishJAHome()