public class Connection extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
BINDINGS_VERSION
The version of the bindings that this class belongs to.
|
Boolean |
rioConnection
Deprecated.
Use getAPIVersion() instead.
|
| Constructor and Description |
|---|
Connection(String client,
String username,
String password)
Deprecated.
Use a constructor that takes a URL as the first parameter instead.
|
Connection(URL url)
Creates a connection to a particular server using a given username and password.
|
Connection(URL url,
String sessionReference)
Creates a connection to a particular server using a given username and password.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Nothrow guarantee.
|
protected void |
finalize() |
APIVersion |
getAPIVersion()
Updated when Session.login_with_password() is called.
|
org.apache.xmlrpc.client.XmlRpcClientConfigImpl |
getConfig() |
String |
getSessionReference() |
public static final String BINDINGS_VERSION
@Deprecated public Boolean rioConnection
@Deprecated public Connection(String client, String username, String password) throws MalformedURLException, org.apache.xmlrpc.XmlRpcException, Types.BadServerResponse, Types.SessionAuthenticationFailed, Types.XenAPIException
MalformedURLExceptionorg.apache.xmlrpc.XmlRpcExceptionTypes.BadServerResponseTypes.SessionAuthenticationFailedTypes.XenAPIExceptionpublic Connection(URL url)
public Connection(URL url, String sessionReference)
public APIVersion getAPIVersion()
protected void finalize()
throws Throwable
public void dispose()
public org.apache.xmlrpc.client.XmlRpcClientConfigImpl getConfig()
public String getSessionReference()