C# Class ConoHaNet.Objects.File.CloudFilesMetadataProcessor

CloudFilesMetadataProcessor
Inheritance: IObjectStorageMetadataProcessor
Show file Open project: crowdy/OpenStack-ConoHa

Public Methods

Method Description
ProcessMetadata ( IList httpHeaders ) : Dictionary>

Extracts metadata information from a collection of HTTP headers.

The returned collection has two keys: CloudFilesProvider.ProcessedHeadersHeaderKey and CloudFilesProvider.ProcessedHeadersMetadataKey.

The value for CloudFilesProvider.ProcessedHeadersMetadataKey contains the processed Cloud Files metadata included in HTTP headers such as X-Account-Meta-*, X-Container-Meta-*, and X-Object-Meta-*. The metadata prefix has been removed from the keys stored in this value.

The value for CloudFilesProvider.ProcessedHeadersHeaderKey contains the HTTP headers which were not in the form of a known Cloud Files metadata prefix.

Private Methods

Method Description
DecodeUnicodeValue ( string value ) : string

Method Details

ProcessMetadata() public method

Extracts metadata information from a collection of HTTP headers.
The returned collection has two keys: CloudFilesProvider.ProcessedHeadersHeaderKey and CloudFilesProvider.ProcessedHeadersMetadataKey.

The value for CloudFilesProvider.ProcessedHeadersMetadataKey contains the processed Cloud Files metadata included in HTTP headers such as X-Account-Meta-*, X-Container-Meta-*, and X-Object-Meta-*. The metadata prefix has been removed from the keys stored in this value.

The value for CloudFilesProvider.ProcessedHeadersHeaderKey contains the HTTP headers which were not in the form of a known Cloud Files metadata prefix.

public ProcessMetadata ( IList httpHeaders ) : Dictionary>
httpHeaders IList
return Dictionary>