com.vmware.vim25.mo.util
Class VerUtil

java.lang.Object
  extended by com.vmware.vim25.mo.util.VerUtil

public class VerUtil
extends Object

The returned XML data is in the following format:


 

  
  
     
        
     
  
 
 
Utility class for checking the version of VISDK the server supports.

Author:
Steve JIN (sjin@vmware.com)

Constructor Summary
VerUtil()
           
 
Method Summary
static String getTargetNameSpace(String target)
          Retrieve the target server's name space
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VerUtil

public VerUtil()
Method Detail

getTargetNameSpace

public static String getTargetNameSpace(String target)
                                 throws IOException
Retrieve the target server's name space

Parameters:
target, - either IP or host name
Returns:
the namespace, e.g. urn:vim25Service
Throws:
IOException - when there is a network issue or service issue on the target server
RuntimeException - wrapping NoSuchAlgorithmException, KeyManagementException which are not likely to happen. If it happens, you can catch the runtime exception and unwrapp it for the real exceptions.


Copyright © 2011-2012. All Rights Reserved.