public final class ServerConnection extends Object
| Constructor and Description |
|---|
ServerConnection(URL url,
VimPortType vimService,
ServiceInstance serviceInstance) |
| Modifier and Type | Method and Description |
|---|---|
ServiceInstance |
getServiceInstance() |
String |
getSessionStr() |
URL |
getUrl() |
String |
getUsername() |
UserSession |
getUserSession()
Deprecated.
This method returns a cached UserSession which holds dynamic properties,
for example, lastActiveTime, but are not updated. To avoid this confusion,
deprecate it. Also see bug: 3403474
To get updated UserSession, always use SessionManager.
|
VimPortType |
getVimService() |
void |
logout()
Disconnect from the server and clean up
|
public ServerConnection(URL url, VimPortType vimService, ServiceInstance serviceInstance)
public String getSessionStr()
public void logout()
public ServiceInstance getServiceInstance()
public VimPortType getVimService()
public URL getUrl()
public String getUsername()
public UserSession getUserSession()
Copyright © 2011-2012. All Rights Reserved.