public class BasicConnection extends java.lang.Object implements Connection
Samples that need a connection open before they can do anything useful extend ConnectedVimServiceBase so that the code in those samples can focus on demonstrating the feature at hand. The logic of most samples will not be changed by the use of the BasicConnection or the SsoConnection.
ConnectedVimServiceBase| Constructor and Description |
|---|
BasicConnection() |
| Modifier and Type | Method and Description |
|---|---|
Connection |
connect() |
Connection |
disconnect() |
java.util.Map |
getHeaders() |
java.lang.String |
getHost() |
java.lang.String |
getPassword() |
java.lang.Integer |
getPort() |
com.vmware.vim25.ServiceContent |
getServiceContent() |
java.lang.String |
getServiceInstanceName() |
com.vmware.vim25.ManagedObjectReference |
getServiceInstanceReference() |
java.lang.String |
getUrl() |
java.net.URL |
getURL() |
java.lang.String |
getUsername() |
com.vmware.vim25.UserSession |
getUserSession() |
com.vmware.vim25.VimPortType |
getVimPort() |
com.vmware.vim25.VimService |
getVimService() |
boolean |
isConnected() |
void |
setPassword(java.lang.String password) |
void |
setUrl(java.lang.String url) |
void |
setUsername(java.lang.String username) |
public void setUrl(java.lang.String url)
setUrl in interface Connectionpublic java.lang.String getUrl()
getUrl in interface Connectionpublic java.lang.String getHost()
getHost in interface Connectionpublic java.lang.Integer getPort()
getPort in interface Connectionpublic void setUsername(java.lang.String username)
setUsername in interface Connectionpublic java.lang.String getUsername()
getUsername in interface Connectionpublic void setPassword(java.lang.String password)
setPassword in interface Connectionpublic java.lang.String getPassword()
getPassword in interface Connectionpublic com.vmware.vim25.VimService getVimService()
getVimService in interface Connectionpublic com.vmware.vim25.VimPortType getVimPort()
getVimPort in interface Connectionpublic com.vmware.vim25.ServiceContent getServiceContent()
getServiceContent in interface Connectionpublic com.vmware.vim25.UserSession getUserSession()
getUserSession in interface Connectionpublic java.lang.String getServiceInstanceName()
getServiceInstanceName in interface Connectionpublic java.util.Map getHeaders()
getHeaders in interface Connectionpublic com.vmware.vim25.ManagedObjectReference getServiceInstanceReference()
getServiceInstanceReference in interface Connectionpublic Connection connect()
connect in interface Connectionpublic boolean isConnected()
isConnected in interface Connectionpublic Connection disconnect()
disconnect in interface Connectionpublic java.net.URL getURL()
getURL in interface Connection