compareTo (Component otherComponent)
int
fetchFromServer ()
Performs an HTTP fetch of the component from the server and writes to the local file
system with the file name temp.jar in the local directory.
Component
getBuildDescription ()
Returns the string 'Release' for a version of the form 'a.b(c.d) Release'.
java.lang.String
getBuildNumber ()
Returns 'd' for a version of the form a.b(c.d).
int
getLocation ()
The string form location of the component.
java.lang.String
getMajorVersion ()
Returns 'a' version for a version of the form a.b(c.d).
int
getMinorVersion ()
Returns 'b' version for a version of the form a.b(c.d).
int
getName ()
Returns the name of the component.
java.lang.String
getRevisionNumber ()
Returns 'c' for a version of the form a.b(c.d).
int
The Autoupdater feature in JTAPI also allows applications to download the latest version of JTAPI.JAR
directly from the Cisco Unified Communications Manager.
1.
Updater creates a newjtapi.jar file in the current folder of the application, which represents the new version
of the jar file that was downloaded from the Cisco Unified Communications Manager.
2.
Updater copies the current jtapi.jar to a file that is named component.temp in the classpath specified.
3.
Updater replaces the current jtapi.jar file with the new jtapi.jar file.
At the end of this operation, the current jar file becomes component.temp and the new jar file becomes jtapi.jar.
This operation is supported for both Linux and Windows.
Example Usage of Autoupdater
Command Line : java com.cisco.services.updater.ComponentUpdater <server> <component name>
<login> <passwd>Component localComponent,
downloadedComponent;
ComponentUpdater updater
new ComponentUpdater();
String localPath
updater.getLocalComponentPath(args[1]);
localComponent
updater.queryLocalComponentVersion("jtapi.jar",
localPath);
localComponent.copyTo("component.temp");
String provString
args[0] + ";login = " + args[2] + ";passwd = " + args[3];
CiscoJtapiPeer peer
(CiscoJtapiPeer) (JtapiPeerFactory.getJtapiPeer(null));
CiscoJtapiProperties tempProp
( (CiscoJtapiPeerImpl) (peer)). getJtapiProperties();
tempProp.setLightWeightProvider(true);
Cisco Unified JTAPI Developers Guide for Cisco Unified Communications Manager, Release 15 and SUs
39
Features Supported by Cisco Unified JTAPI
Autoupdate of API