public class Connection
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BINDINGS_VERSION
The version of the bindings that this class belongs to.
|
java.lang.Boolean |
rioConnection
Deprecated.
Use getAPIVersion() instead.
|
| Constructor and Description |
|---|
Connection(java.lang.String client,
java.lang.String username,
java.lang.String password)
Deprecated.
Use a constructor that takes a URL as the first parameter instead.
|
Connection(java.net.URL url)
Creates a connection to a particular server using a given username and password.
|
Connection(java.net.URL url,
java.lang.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() |
java.lang.String |
getSessionReference() |
public static final java.lang.String BINDINGS_VERSION
@Deprecated public java.lang.Boolean rioConnection
@Deprecated
public Connection(java.lang.String client,
java.lang.String username,
java.lang.String password)
throws java.net.MalformedURLException,
org.apache.xmlrpc.XmlRpcException,
Types.BadServerResponse,
Types.SessionAuthenticationFailed,
Types.XenAPIException
java.net.MalformedURLExceptionorg.apache.xmlrpc.XmlRpcExceptionTypes.BadServerResponseTypes.SessionAuthenticationFailedTypes.XenAPIExceptionpublic Connection(java.net.URL url)
public Connection(java.net.URL url,
java.lang.String sessionReference)
public APIVersion getAPIVersion()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic void dispose()
public org.apache.xmlrpc.client.XmlRpcClientConfigImpl getConfig()
public java.lang.String getSessionReference()