org.jclouds.atmos.util
Class AtmosUtils

java.lang.Object
  extended by org.jclouds.atmos.util.AtmosUtils

public class AtmosUtils
extends Object

Encryption, Hashing, and IO Utilities needed to sign and verify Atmos Storage requests and responses.

Author:
Adrian Cole

Constructor Summary
AtmosUtils()
           
 
Method Summary
static String adjustContainerIfDirOptionPresent(String container, ListContainerOptions options)
           
static void deleteAndEnsureGone(AtmosClient sync, String path)
           
 AtmosError parseAtmosErrorFromContent(HttpCommand command, HttpResponse response, InputStream content)
           
 AtmosError parseAtmosErrorFromContent(HttpCommand command, HttpResponse response, String content)
           
static String putBlob(AtmosClient sync, Crypto crypto, BlobToObject blob2Object, String container, Blob blob, PutOptions options)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtmosUtils

public AtmosUtils()
Method Detail

parseAtmosErrorFromContent

public AtmosError parseAtmosErrorFromContent(HttpCommand command,
                                             HttpResponse response,
                                             InputStream content)
                                      throws HttpException
Throws:
HttpException

putBlob

public static String putBlob(AtmosClient sync,
                             Crypto crypto,
                             BlobToObject blob2Object,
                             String container,
                             Blob blob,
                             PutOptions options)

deleteAndEnsureGone

public static void deleteAndEnsureGone(AtmosClient sync,
                                       String path)

parseAtmosErrorFromContent

public AtmosError parseAtmosErrorFromContent(HttpCommand command,
                                             HttpResponse response,
                                             String content)
                                      throws HttpException
Throws:
HttpException

adjustContainerIfDirOptionPresent

public static String adjustContainerIfDirOptionPresent(String container,
                                                       ListContainerOptions options)


Copyright © 2009-2012 jclouds. All Rights Reserved.