Class ServerConnection

java.lang.Object
com.vmware.vim25.mo.ServerConnection

public class ServerConnection extends Object
The class representing the connection to a server either VC server or ESX.
  • Constructor Details

  • Method Details

    • getSessionStr

      public String getSessionStr()
      Returns:
      the current session string in format like: vmware_soap_session="B3240D15-34DF-4BB8-B902-A844FDF42E85"
    • logout

      public void logout()
      Disconnect from the server and clean up
    • getServiceInstance

      public ServiceInstance getServiceInstance()
    • getVimService

      public VimPortType getVimService()
    • getUrl

      public URL getUrl()
    • getUsername

      public String getUsername()
    • getUserSession

      @Deprecated public 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.