|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vmware.vcloud.sdk.SdkUtil
public class SdkUtil
The SdkUtil contains methods for, 1. retrieving messages from the I18N resource bundles. 2. provides SDK level GET PUT POST DELETE methods which calls and validates the GET PUT POST DELETE methods in the RestUtil.
| Method Summary | ||
|---|---|---|
static
|
delete(VcloudClient client,
String url,
int statusCode)
This method calls the DELETE operation in the Rest Utility. |
|
static
|
get(VcloudClient client,
String url,
int statusCode)
This method calls the GET operation in the Rest Utility. |
|
static String |
getI18nString(SdkMessage sdkMessage)
This method returns the I18N String from the resource bundle based on the systems locale. |
|
static
|
post(VcloudClient client,
String url,
String requestString,
String mediaType,
int statusCode)
This method calls the POST operation in the Rest Utility. |
|
static
|
put(VcloudClient client,
String url,
String requestString,
String mediaType,
int statusCode)
This method calls the PUT operation in the Rest Utility. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String getI18nString(SdkMessage sdkMessage)
sdkMessage - SdkMessage
String
public static <T> T get(VcloudClient client,
String url,
int statusCode)
throws VCloudException
client - VcloudClienturl - String
VCloudException
public static <T> T post(VcloudClient client,
String url,
String requestString,
String mediaType,
int statusCode)
throws VCloudException
client - VcloudClienturl - StringrequestString - StringmediaType - StringstatusCode -
VCloudException
public static <T> T put(VcloudClient client,
String url,
String requestString,
String mediaType,
int statusCode)
throws VCloudException
client - VcloudClienturl - StringrequestString - StringmediaType - StringstatusCode -
VCloudException
public static <T> T delete(VcloudClient client,
String url,
int statusCode)
throws VCloudException
client - VcloudClienturl - StringstatusCode -
VCloudException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||