Class ContainerHttpResponseParsers
- Namespace
- Microsoft.WindowsAzure.Storage.Blob.Protocol
- Assembly
- Microsoft.WindowsAzure.Storage.dll
Provides a set of methods for parsing container responses from the Blob service.
public static class ContainerHttpResponseParsers
- Inheritance
-
ContainerHttpResponseParsers
- Inherited Members
Methods
GetAcl(HttpWebResponse)
Gets the ACL for the container from the response.
public static BlobContainerPublicAccessType GetAcl(HttpWebResponse response)
Parameters
response
HttpWebResponseThe web response.
Returns
- BlobContainerPublicAccessType
A value indicating the public access level for the container.
GetMetadata(HttpWebResponse)
Gets the user-defined metadata.
public static IDictionary<string, string> GetMetadata(HttpWebResponse response)
Parameters
response
HttpWebResponseThe response from server.
Returns
- IDictionary<string, string>
A IDictionary<TKey, TValue> of the metadata.
GetProperties(HttpWebResponse)
Gets the container's properties from the response.
public static BlobContainerProperties GetProperties(HttpWebResponse response)
Parameters
response
HttpWebResponseThe web response.
Returns
- BlobContainerProperties
The container's attributes.
GetRequestId(HttpWebResponse)
Gets the request ID from the response.
public static string GetRequestId(HttpWebResponse response)
Parameters
response
HttpWebResponseThe web response.
Returns
- string
A unique value associated with the request.
ReadAccountProperties(HttpWebResponse)
Reads account properties from a HttpWebResponse.
public static AccountProperties ReadAccountProperties(HttpWebResponse response)
Parameters
response
HttpWebResponseThe HttpWebResponse from which to read the account properties.
Returns
- AccountProperties
The account properties stored in the headers.
ReadSharedAccessIdentifiers(Stream, BlobContainerPermissions)
Reads the share access policies from a stream in XML.
public static void ReadSharedAccessIdentifiers(Stream inputStream, BlobContainerPermissions permissions)
Parameters
inputStream
StreamThe stream of XML policies.
permissions
BlobContainerPermissionsThe permissions object to which the policies are to be written.