CloudBlobContainer.getBlobReferenceFromServer Method

Definition

Overloads

getBlobReferenceFromServer(final String blobName)

Gets a reference to a blob in this container. The blob must already exist on the service.

Unlike the other get*Reference methods, this method does a service request to retrieve the blob's metadata and properties. The returned blob may be used directly as a CloudBlob or cast using either instanceof or getProperties().getBlobType() to determine its subtype.

getBlobReferenceFromServer(final String blobName, final String snapshotID, AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)

Gets a reference to a blob in this container. The blob must already exist on the service.

Unlike the other get*Reference methods, this method does a service request to retrieve the blob's metadata and properties. The returned blob may be used directly as a CloudBlob or cast using either instanceof or getProperties().getBlobType() to determine its subtype.

getBlobReferenceFromServer(final String blobName)

Gets a reference to a blob in this container. The blob must already exist on the service.

Unlike the other get*Reference methods, this method does a service request to retrieve the blob's metadata and properties. The returned blob may be used directly as a CloudBlob or cast using either instanceof or getProperties().getBlobType() to determine its subtype.

public final CloudBlob getBlobReferenceFromServer(final String blobName)
Parameters
blobName
final String

A String that represents the name of the blob.

Returns
final CloudBlob

A CloudBlob object that represents a reference to the specified blob.

Exceptions
StorageException

If a storage service error occurred.

URISyntaxException

If the resource URI is invalid.

getBlobReferenceFromServer(final String blobName, final String snapshotID, AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)

Gets a reference to a blob in this container. The blob must already exist on the service.

Unlike the other get*Reference methods, this method does a service request to retrieve the blob's metadata and properties. The returned blob may be used directly as a CloudBlob or cast using either instanceof or getProperties().getBlobType() to determine its subtype.

public final CloudBlob getBlobReferenceFromServer(final String blobName, final String snapshotID, AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)
Parameters
blobName
final String

A String that represents the name of the blob.

snapshotID
final String

A String that represents the snapshot ID of the blob.

accessCondition
AccessCondition

An AccessCondition object that represents the access conditions for the blob.

options
BlobRequestOptions

A BlobRequestOptions object that specifies any additional options for the request. Specifying null will use the default request options from the associated service client ( CloudBlobClient).

opContext
OperationContext

An OperationContext object that represents the context for the current operation. This object is used to track requests to the storage service, and to provide additional runtime information about the operation.

Returns
final CloudBlob

A CloudBlob object that represents a reference to the specified blob.

Exceptions
StorageException

If a storage service error occurred.

URISyntaxException

If the resource URI is invalid.

Applies to