Previous Topic: Java Utilities PackageNext Topic: Session Class


Connection Class

Use the SmApiConnection class to create an API connection object and establish a connection between the Agent API and Policy Server. Depending upon the constructor you use, you can establish either a default connection or a user-defined connection.

The core methods of the SmApiConnection class are as follows:

Method

Description

getAgentApiConnection()

Retrieves the Agent API handle for the current connection. Use this handle when issuing subsequent Java API requests to the Policy Server.

isValidApiConnection()

Verifies whether a valid Agent API connection is available.

setAgentApiConnection()

Establishes a user-defined connection through the handle passed into the method. If null is passed, a static connection is established.

Note: Do not call the execute() method from your client application. This method is for internal use only.