Package org.jclouds.atmos.util
Class AtmosUtils
- java.lang.Object
-
- 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.
-
-
Constructor Summary
Constructors Constructor Description AtmosUtils()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringadjustContainerIfDirOptionPresent(String container, ListContainerOptions options)static voiddeletePathAndEnsureGone(AtmosClient sync, String path)AtmosErrorparseAtmosErrorFromContent(HttpCommand command, HttpResponse response, InputStream content)AtmosErrorparseAtmosErrorFromContent(HttpCommand command, HttpResponse response, String content)static StringputBlob(AtmosClient sync, Crypto crypto, BlobToObject blob2Object, String container, Blob blob, PutOptions options)
-
-
-
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)
-
deletePathAndEnsureGone
public static void deletePathAndEnsureGone(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)
-
-