com.vmware.vim.rest
Class RestClient

java.lang.Object
  extended by com.vmware.vim.rest.RestClient

public class RestClient
extends Object


Constructor Summary
RestClient(String serverUrl, String username, String password)
           
 
Method Summary
 String get(String urlStr)
           
 String getUrlStr()
           
 String post(String urlStr)
           
 String post(String urlStr, Map<String,String> para)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestClient

public RestClient(String serverUrl,
                  String username,
                  String password)
Method Detail

get

public String get(String urlStr)
           throws IOException
Throws:
IOException

post

public String post(String urlStr)
            throws Exception
Throws:
Exception

post

public String post(String urlStr,
                   Map<String,String> para)
            throws Exception
Throws:
Exception

getUrlStr

public String getUrlStr()


Copyright © 2011-2012. All Rights Reserved.