org.soyatec.windows.azure.blob

New Interface Summary
IBlob The IBlob interface specifies contents and properties for blob.
IBlockBlob This interface inherits from IBlob. This class represents a blob that is made out of blocks and provides APIs to directly access it.
IPageBlob This interface inherits from IBlob. This interface representing page blobs, which are optimized for random read/write operations and which provide the ability to write to a range of bytes in a blob.
IBlobConstraints The BlobConstraints class specifies constraints for blob that are used in the BlobContainer class.
IBlobContainer The BlobContainer class is used to access and enumerate blobs in the container.
IBlobContents This class handles the content access in a Blob.
IBlobProperties The properties of a blob.
IContainerAccessControl The ContainerAccessControl class represents the access control for containers.
IContainerProperties The ContainerProperties class represents the properties of a container.
IPageRange The PageRange class represents the pageRange of a container.
ISharedAccessUrl The SharedAccessUrl class defines a shared access url.

 

New Class Summary
DateTime The signedstart and signedexpiry fields must be expressed as UTC times and must adhere to a valid ISO 8061 format.
Metadata Represent the Metadata of container.
SharedAccessPermissions The SharedAccessPermissions class is used for the shared access permissions.

 

New Enums Summary
BlobType The signedstart and signedexpiry fields must be expressed as UTC times and must adhere to a valid ISO 8061 format.
LeaseMode Represent the lease mode.
LeaseStatus Represent the lease status.
ResourceType Represent the resource type.

 

Remove or Rename Enums Summary
ContainerAccessControl Move to org.soyatec.windows.azure.blob.internal package, it is invisible now.

 

Remove or Rename Interface Summary
RetryPolicy Rename to IRetryPolicy

 

Remove or Rename Class Summary
BlobConstraints

Move to org.soyatec.windows.azure.blob.internal package.

You can use IBlobConstraints(Package: org.soyatec.windows.azure.blob) instead of it.

BlobContainer

Move to org.soyatec.windows.azure.blob.internal package.

You can use IBlobContainer(Package: org.soyatec.windows.azure.blob) instead of it.

BlobContainerRest

Move to org.soyatec.windows.azure.blob.internal package.

You can use IBlobContainer(Package: org.soyatec.windows.azure.blob) instead of it.

BlobContents

Move to org.soyatec.windows.azure.blob.internal package.

You can use IBlobContents(Package: org.soyatec.windows.azure.blob) instead of it.

BlobProperties

Move to org.soyatec.windows.azure.blob.internal package.

You can use IBlobProperties(Package: org.soyatec.windows.azure.blob) instead of it.

BlobStorage

Rename to BlobStorageClient.

BlobStorageRest

Move to org.soyatec.windows.azure.blob.internal package.

You can use BlobStorageClient(Package: org.soyatec.windows.azure.blob) instead of it.

ContainerProperties

Move to org.soyatec.windows.azure.blob.internal package.

You can use IContainerProperties(Package: org.soyatec.windows.azure.blob) instead of it.

RetryPolicies

Move to org.soyatec.windows.azure.blob.internal package, it is invisible now.

 

Modify Class Summary

BlobStorage

(New name: BlobStorageClient)

New Methods static BlobStorageClient create (boolean usePathStyleUris, java.lang.String accountName, java.lang.String base64key) 
Convenient way to create a new BlobStorageClient.
static IBlobContents createBlobContents(BlobStream stream)  Create a IBlobContents from BlobStream.
static IBlobContents createBlobContents(byte[] value)  Create a IBlobContents from direct values.
static IBlobContents createBlobContents(java.io.File file) Create a IBlobContents from File.
static IBlobContents createBlobContents(java.io.InputStream stream)  Create a IBlobContents from InputStream.
static IBlobProperties createBlobProperties(java.lang.String blobName)  Create a IBlobProperties for given Blob name.
abstract  IBlobContainer createContainer(java.lang.String containerName)  Create the container if it does not exist.

abstract  IBlobContainer createContainer

(java.lang.String containerName, NameValueCollection metadata,

IContainerAccessControl accessControl) 

Create the container with the specified metadata and access control if it does not exist.
abstract  ISharedAccessUrl createSharedAccessUrl(java.lang.String containerName, java.lang.String blobName, ResourceType resource, int permissions, DateTime start, DateTime expiry, java.lang.String identifier)  Create a SharedAccessUrl.
abstract  boolean isContainerExist(java.lang.String containerName) Check if the blob container exists.
abstract  java.lang.String getLastStatus()  Get the last status.
abstract  boolean deleteContainer(java.lang.String name)  Deletes the container.
Modify Methods abstract BlobContainer getBlobContainer(java.lang.String containerName)  Change the return type from BlobContainer to IBlobContainer
RetryPolicy getRetryPolicy() Change the return type form  RetryPolicy to IRetryPolicy
void setRetryPolicy(RetryPolicy retryPolicy)

Change to

setRetryPolicy(IRetryPolicy retryPolicy)

Modify Fields static RetryPolicy DefaultRetryPolicy Change type from RetryPolicy to IRetryPolicy.

BlobContainer

(You should use the IBlobContainer interface)

New Methods abstract void createPageBlob(IBlobProperties blobProperties, int size,NameValueCollection headerParameters) Create a new page blob.
abstract java.lang.String leaseBlob(IBlobProperties blobProperties, LeaseMode mode,NameValueCollection headerParameters)  The Lease Blob operation establishes and manages a one-minute lock on a blob for write operations.
abstract boolean updateBlockBlob(IBlobProperties  blobProperties,BlobContents blobContents) Update a existing blob.
Modify Methods abstract boolean createContainer()

It has been removed.You can use the method to create a container in BlobStorageClient class:

abstract IBlobContainer createContainer(java.lang.String containerName)

abstract boolean createContainer(NameValueCollection metadata, ContainerAccessControl accessControl)

It has been removed.You can use the method to create a container in BlobStorageClient class:

abstract IBlobContainer createContainer(java.lang.String containerName, NameValueCollection metadata, IContainerAccessControl accessControl)

abstract boolean deleteContainer()

It has been removed.You can use the method to delete the container in BlobStorageClient class:

abstract boolean deleteContainer(java.lang.String name)

abstract  boolean copyBlob(java.lang.String destContainer, java.lang.String destBlobName, java.lang.String sourceBlobName, NameValueCollection metadata, BlobConstraints constraints)

Change to

boolean copyBlob(java.lang.String destContainer, java.lang.String destBlobName, java.lang.String sourceBlobName, NameValueCollection metadata,IBlobConstraints constraints) 

abstract  boolean createBlob(BlobProperties blobProperties, BlobContents blobContents, boolean overwrite)

Change to

IBlob createBlockBlob(IBlobProperties blobProperties, IBlobContents blobContents) 

abstract  boolean deleteBlobIfNotModified(BlobProperties blob)

Change to

boolean deleteBlobIfNotModified(IBlobProperties blob) 

abstract  boolean doesBlobExist(java.lang.String blobName)

Change to

boolean isBlobExist(java.lang.String blobName) 

abstract  boolean doesContainerExist()

Change to

boolean isContainerExist() 

void setRetryPolicy(RetryPolicy retryPolicy)

Change to

void setRetryPolicy(IRetryPolicy retryPolicy)

RetryPolicy getRetryPolicy() Change the return type to IRetryPolicy.
abstract  BlobProperties getBlobProperties(java.lang.String name)

Move to IBlob

BlobProperties getProperties()

abstract  ContainerProperties getContainerProperties()

Change to

abstract  IContainerProperties getProperties()

java.lang.String getContainerName()

Change to

java.lang.String getName()

java.net.URI getContainerUri()

Change to

java.net.URI getUri()

abstract void setContainerAccessControl(ContainerAccessControl acl)

Change to

abstract void setAccessControl(ContainerAccessControl acl)

abstract ContainerAccessControl getContainerAccessControl()

Change to

abstract ContainerAccessControl getAccessControl()

void setContainerUri(java.net.URI containerUri)

Change to

void setUri(java.net.URI containerUri)

abstract  BlobProperties getBlob(java.lang.String name, BlobContents blobContents, boolean transferAsChunks)

Move to IBlob

IBlobContent getContents(BlobStream blobContentsStream

abstract  java.util.Collection<BlobProperties> listBlobs(java.lang.String prefix, boolean combineCommonPrefixes)

Change to

java.util.Iterator<IBlobProperties> listBlobs(java.lang.String prefix, boolean combineCommonPrefixes)

abstract  java.util.Collection<BlobProperties> listBlobs(java.lang.String prefix, boolean combineCommonPrefixes, int maxResults)

Change to

java.util.Iterator<IBlobProperties> listBlobs(java.lang.String prefix, boolean combineCommonPrefixes, int maxResults) 

abstract  void setContainerAccessControl(ContainerAccessControl acl)

Change to

void setContainerAccessControl(IContainerAccessControl acl) 

boolean updateBlobIfNotModified(IBlobProperties blobProperties, IBlobContents contents)

Move to IBlob

boolean updateIfNotModified(IBlobProperties blobProperties, IBlobContents  contents) 

abstract  void updateBlobMetadata(BlobProperties blobProperties)

Move to IBlob

void setProperties(IBlobProperties blobProperties)

abstract  boolean updateBlobMetadataIfNotModified(BlobProperties blobProperties)

Move to IBlob

boolean updateIfNotModified(IBlobProperties blobProperties, IBlobContents  contents)