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  org.jclouds.logging.Logger logger
           
 
Method Summary
static String findRegionInArgsOrNull(org.jclouds.rest.internal.GeneratedHttpRequest<?> gRequest)
           
static String getRegionFromLocationOrNull(org.jclouds.domain.Location location)
           
static
<R extends org.jclouds.http.HttpRequest>
R
indexIterableToFormValuesWithPrefix(R request, String prefix, Object input)
           
static
<R extends org.jclouds.http.HttpRequest>
R
indexMapOfIterableToFormValuesWithPrefix(R request, String prefix, String keySuffix, String valueSuffix, Object input)
           
static
<R extends org.jclouds.http.HttpRequest>
R
indexMapToFormValuesWithPrefix(R request, String prefix, String keySuffix, String valueSuffix, Object input)
           
static
<R extends org.jclouds.http.HttpRequest>
R
indexMultimapToFormValuesWithPrefix(R request, String prefix, String keySuffix, String valueSuffix, Object input)
           
static
<R extends org.jclouds.http.HttpRequest>
R
indexStringArrayToFormValuesWithPrefix(R request, String prefix, Object input)
           
static
<R extends org.jclouds.http.HttpRequest>
R
indexStringArrayToFormValuesWithStringFormat(R request, String format, Object input)
           
static boolean isRegion(String regionName)
           
 AWSError parseAWSErrorFromContent(org.jclouds.http.HttpRequest request, org.jclouds.http.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 org.jclouds.logging.Logger logger
Method Detail

parseAWSErrorFromContent

public AWSError parseAWSErrorFromContent(org.jclouds.http.HttpRequest request,
                                         org.jclouds.http.HttpResponse response)

indexStringArrayToFormValuesWithStringFormat

public static <R extends org.jclouds.http.HttpRequest> R indexStringArrayToFormValuesWithStringFormat(R request,
                                                                                                      String format,
                                                                                                      Object input)

isRegion

public static boolean isRegion(String regionName)

indexIterableToFormValuesWithPrefix

public static <R extends org.jclouds.http.HttpRequest> R indexIterableToFormValuesWithPrefix(R request,
                                                                                             String prefix,
                                                                                             Object input)

indexStringArrayToFormValuesWithPrefix

public static <R extends org.jclouds.http.HttpRequest> R indexStringArrayToFormValuesWithPrefix(R request,
                                                                                                String prefix,
                                                                                                Object input)

indexMapToFormValuesWithPrefix

public static <R extends org.jclouds.http.HttpRequest> R indexMapToFormValuesWithPrefix(R request,
                                                                                        String prefix,
                                                                                        String keySuffix,
                                                                                        String valueSuffix,
                                                                                        Object input)

indexMultimapToFormValuesWithPrefix

public static <R extends org.jclouds.http.HttpRequest> R indexMultimapToFormValuesWithPrefix(R request,
                                                                                             String prefix,
                                                                                             String keySuffix,
                                                                                             String valueSuffix,
                                                                                             Object input)

indexMapOfIterableToFormValuesWithPrefix

public static <R extends org.jclouds.http.HttpRequest> R indexMapOfIterableToFormValuesWithPrefix(R request,
                                                                                                  String prefix,
                                                                                                  String keySuffix,
                                                                                                  String valueSuffix,
                                                                                                  Object input)

getRegionFromLocationOrNull

public static String getRegionFromLocationOrNull(org.jclouds.domain.Location location)

parseHandle

public static String[] parseHandle(String id)

findRegionInArgsOrNull

public static String findRegionInArgsOrNull(org.jclouds.rest.internal.GeneratedHttpRequest<?> gRequest)


Copyright © 2009-2012 jclouds. All Rights Reserved.