org.jclouds.aws.util
Class AWSUtils
java.lang.Object
org.jclouds.aws.util.AWSUtils
@Singleton
public class AWSUtils
- extends Object
Needed to sign and verify requests and responses.
- Author:
- Adrian Cole
Method Summary |
static String |
findRegionInArgsOrNull(GeneratedHttpRequest<?> gRequest)
|
static String |
getRegionFromLocationOrNull(Location location)
|
static
|
indexIterableToFormValuesWithPrefix(R request,
String prefix,
Object input)
|
static
|
indexMapOfIterableToFormValuesWithPrefix(R request,
String prefix,
String keySuffix,
String valueSuffix,
Object input)
|
static
|
indexMapToFormValuesWithPrefix(R request,
String prefix,
String keySuffix,
String valueSuffix,
Object input)
|
static
|
indexMultimapToFormValuesWithPrefix(R request,
String prefix,
String keySuffix,
String valueSuffix,
Object input)
|
static
|
indexStringArrayToFormValuesWithPrefix(R request,
String prefix,
Object input)
|
static
|
indexStringArrayToFormValuesWithStringFormat(R request,
String format,
Object input)
|
static boolean |
isRegion(String regionName)
|
AWSError |
parseAWSErrorFromContent(HttpRequest request,
HttpResponse response)
|
static String[] |
parseHandle(String id)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected Logger logger
parseAWSErrorFromContent
public AWSError parseAWSErrorFromContent(HttpRequest request,
HttpResponse response)
indexStringArrayToFormValuesWithStringFormat
public static <R extends HttpRequest> R indexStringArrayToFormValuesWithStringFormat(R request,
String format,
Object input)
isRegion
public static boolean isRegion(String regionName)
indexIterableToFormValuesWithPrefix
public static <R extends HttpRequest> R indexIterableToFormValuesWithPrefix(R request,
String prefix,
Object input)
indexStringArrayToFormValuesWithPrefix
public static <R extends HttpRequest> R indexStringArrayToFormValuesWithPrefix(R request,
String prefix,
Object input)
indexMapToFormValuesWithPrefix
public static <R extends HttpRequest> R indexMapToFormValuesWithPrefix(R request,
String prefix,
String keySuffix,
String valueSuffix,
Object input)
indexMultimapToFormValuesWithPrefix
public static <R extends HttpRequest> R indexMultimapToFormValuesWithPrefix(R request,
String prefix,
String keySuffix,
String valueSuffix,
Object input)
indexMapOfIterableToFormValuesWithPrefix
public static <R extends HttpRequest> R indexMapOfIterableToFormValuesWithPrefix(R request,
String prefix,
String keySuffix,
String valueSuffix,
Object input)
getRegionFromLocationOrNull
public static String getRegionFromLocationOrNull(Location location)
parseHandle
public static String[] parseHandle(String id)
findRegionInArgsOrNull
public static String findRegionInArgsOrNull(GeneratedHttpRequest<?> gRequest)
Copyright © 2009-2011 jclouds. All Rights Reserved.