org.dasein.cloud.aws.storage
Class GlacierMethod

java.lang.Object
  extended by org.dasein.cloud.aws.storage.GlacierMethod

public class GlacierMethod
extends Object

[Class Documentation]

Created by George Reese: 5/22/13 2:46 PM

Author:
George Reese

Nested Class Summary
static class GlacierMethod.Builder
           
 
Field Summary
static String API_VERSION
           
static String GLACIER_PREFIX
           
static String SERVICE_ID
           
 
Method Summary
static GlacierMethod.Builder build(AWSCloud provider, GlacierAction action)
           
protected  org.apache.http.client.HttpClient getClient(String url)
           
 String getUrl()
           
 void invoke()
          Invokes the method and returns nothing
 Map<String,String> invokeHeaders()
          Invokes the method and returns the response headers
 org.json.JSONObject invokeJson()
          Invokes the method and returns the response body as a JSON object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GLACIER_PREFIX

public static final String GLACIER_PREFIX
See Also:
Constant Field Values

SERVICE_ID

public static final String SERVICE_ID
See Also:
Constant Field Values

API_VERSION

public static final String API_VERSION
See Also:
Constant Field Values
Method Detail

invokeJson

public org.json.JSONObject invokeJson()
                               throws org.dasein.cloud.InternalException,
                                      org.dasein.cloud.CloudException
Invokes the method and returns the response body as a JSON object

Returns:
JSON object
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
GlacierException

invokeHeaders

public Map<String,String> invokeHeaders()
                                 throws org.dasein.cloud.InternalException,
                                        org.dasein.cloud.CloudException
Invokes the method and returns the response headers

Returns:
map of response headers; duplicate header keys are ignored
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
GlacierException

invoke

public void invoke()
            throws org.dasein.cloud.InternalException,
                   org.dasein.cloud.CloudException
Invokes the method and returns nothing

Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

getUrl

public String getUrl()
              throws org.dasein.cloud.InternalException,
                     org.dasein.cloud.CloudException
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

getClient

@Nonnull
protected org.apache.http.client.HttpClient getClient(String url)
                                               throws org.dasein.cloud.InternalException
Throws:
org.dasein.cloud.InternalException

build

public static GlacierMethod.Builder build(@Nonnull
                                          AWSCloud provider,
                                          @Nonnull
                                          GlacierAction action)


Copyright © 2009-2014 Dell, Inc.. All Rights Reserved.