}
private GetBlobPropertiesResult getBlobPropertiesResultFromResponse(
ClientResponse response) {
// Properties
BlobProperties properties = new BlobProperties();
properties.setLastModified(dateMapper.parse(response.getHeaders()
.getFirst("Last-Modified")));
properties
.setBlobType(response.getHeaders().getFirst("x-ms-blob-type"));
properties.setLeaseStatus(response.getHeaders().getFirst(
"x-ms-lease-status"));
properties.setContentLength(Long.parseLong(response.getHeaders()
.getFirst("Content-Length")));
properties.setContentType(response.getHeaders()
.getFirst("Content-Type"));
properties.setContentMD5(response.getHeaders().getFirst("Content-MD5"));
properties.setContentEncoding(response.getHeaders().getFirst(
"Content-Encoding"));
properties.setContentLanguage(response.getHeaders().getFirst(
"Content-Language"));
properties.setCacheControl(response.getHeaders().getFirst(
"Cache-Control"));
properties.setEtag(response.getHeaders().getFirst("Etag"));
if (response.getHeaders().containsKey("x-ms-blob-sequence-number")) {
properties.setSequenceNumber(Long.parseLong(response.getHeaders()
.getFirst("x-ms-blob-sequence-number")));
}
// Metadata
HashMap<String, String> metadata = getMetadataFromHeaders(response);