BlobURLParts Class

Definition

A BlobURLParts object represents the components that make up an Azure Storage Container/Blob URL. You may parse an existing URL into its parts with the URLParser class. You may construct a URL from parts by calling toURL(). It is also possible to use the empty constructor to build a blobURL from scratch. NOTE: Changing any SAS-related field requires computing a new SAS signature.

public class BlobURLParts
Inheritance
java.lang.Object
BlobURLParts

Remarks

Sample Code

Warning

It looks like the sample you are looking for has moved! Rest assured we are working on resolving this.

For more samples, please see the Samples file

Constructors

BlobURLParts()

Initializes a BlobURLParts object with all fields set to null, except unparsedParameters, which is an empty map. This may be useful for constructing a URL to a blob storage resource from scratch when the constituent parts are already known.

Methods

blobName()

The blob name ornull  if a ServiceURL or ContainerURL was parsed.

containerName()

The container name ornull  if a ServiceURL was parsed.

host()

The host. Ex: "account.blob.core.windows.net".

sasQueryParameters()

A SASQueryParameters representing the SAS query parameters ornull  if there were no such parameters.

scheme()

The scheme. Ex: "https://".

snapshot()

The snapshot time ornull  if anything except a URL to a snapshot was parsed.

toURL()

Converts the blob URL parts to a URL.

unparsedParameters()

The query parameter key value pairs aside from SAS parameters and snapshot time ornull  if there were no such parameters.

withBlobName(String blobName)

The blob name ornull  if a ServiceURL or ContainerURL was parsed.

withContainerName(String containerName)

The container name ornull  if a ServiceURL was parsed.

withHost(String host)

The host. Ex: "account.blob.core.windows.net".

withSasQueryParameters(SASQueryParameters sasQueryParameters)

A SASQueryParameters representing the SAS query parameters ornull  if there were no such parameters.

withScheme(String scheme)

The scheme. Ex: "https://".

withSnapshot(String snapshot)

The snapshot time ornull  if anything except a URL to a snapshot was parsed.

withUnparsedParameters(Map<String, String[]> unparsedParameters)

The query parameter key value pairs aside from SAS parameters and snapshot time ornull  if there were no such parameters.

Applies to