|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vmware.vcloud.sdk.RestUtil
public class RestUtil
Utility class for the Rest operations (GET PUT POST DELETE). Also contains methods for upload and download
| Nested Class Summary | |
|---|---|
static class |
RestUtil.SdkStatusCode
|
| Method Summary | |
|---|---|
static Response |
delete(VcloudClient client,
String url)
This method performs a HTTP DELETE operation |
static InputStream |
downloadFile(VcloudClient client,
String downloadURL)
Returns the inputstream of the specified downloadURL. |
static Response |
get(VcloudClient client,
String url)
This method performs a HTTP GET operation |
static Response |
post(VcloudClient client,
String url,
String content,
String contentType,
String charset)
This method performs a HTTP POST operation |
static Response |
put(VcloudClient client,
String url,
String content,
String contentType,
String charset)
This method performs a HTTP PUT operation |
static void |
uploadFile(VcloudClient client,
com.vmware.vcloud.api.rest.schema.FileType file,
InputStream is,
long size,
long startByte,
long endByte)
Upload the file |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Response delete(VcloudClient client,
String url)
throws VCloudException
client - VcloudClienturl - String
Response
VCloudException
public static Response put(VcloudClient client,
String url,
String content,
String contentType,
String charset)
throws VCloudException
client - VcloudClienturl - Stringcontent - StringcontentType - Stringcharset - String
Response
VCloudException
public static Response post(VcloudClient client,
String url,
String content,
String contentType,
String charset)
throws VCloudException
client - VcloudClienturl - Stringcontent - StringcontentType - Stringcharset - String
Response
VCloudException
public static Response get(VcloudClient client,
String url)
throws VCloudException
client - VcloudClienturl - String
Response
VCloudException
public static void uploadFile(VcloudClient client,
com.vmware.vcloud.api.rest.schema.FileType file,
InputStream is,
long size,
long startByte,
long endByte)
throws VCloudException
client - VcloudClientfile - FileTypeis - InputStreamsize - LongstartByte - LongendByte - Long
VCloudException
public static InputStream downloadFile(VcloudClient client,
String downloadURL)
throws VCloudException
client - VcloudClientdownloadURL - String
InputStream
VCloudException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||