org.jclouds.aws.util
Class AWSUtils

java.lang.Object
  extended by org.jclouds.aws.util.AWSUtils

@Singleton
public class AWSUtils
extends Object

Needed to sign and verify requests and responses.

Author:
Adrian Cole

Nested Class Summary
static class AWSUtils.GetRegionFromLocation
           
 
Field Summary
protected  Logger logger
           
 
Method Summary
static String findRegionInArgsOrNull(GeneratedHttpRequest<?> gRequest)
           
static String getRegionFromLocationOrNull(Location location)
           
static
<R extends HttpRequest>
R
indexIterableToFormValuesWithPrefix(R request, String prefix, Object input)
           
static
<R extends HttpRequest>
R
indexMapOfIterableToFormValuesWithPrefix(R request, String prefix, String keySuffix, String valueSuffix, Object input)
           
static
<R extends HttpRequest>
R
indexMapToFormValuesWithPrefix(R request, String prefix, String keySuffix, String valueSuffix, Object input)
           
static
<R extends HttpRequest>
R
indexMultimapToFormValuesWithPrefix(R request, String prefix, String keySuffix, String valueSuffix, Object input)
           
static
<R extends HttpRequest>
R
indexStringArrayToFormValuesWithPrefix(R request, String prefix, Object input)
           
static
<R extends HttpRequest>
R
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
 

Field Detail

logger

protected Logger logger
Method Detail

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-2012 jclouds. All Rights Reserved.