org.jclouds.azureblob.functions
Class ParseBlobPropertiesFromHeaders

java.lang.Object
  extended by org.jclouds.azureblob.functions.ParseBlobPropertiesFromHeaders
All Implemented Interfaces:
com.google.common.base.Function<HttpResponse,MutableBlobProperties>, InvocationContext<ParseBlobPropertiesFromHeaders>

public class ParseBlobPropertiesFromHeaders
extends Object
implements com.google.common.base.Function<HttpResponse,MutableBlobProperties>, InvocationContext<ParseBlobPropertiesFromHeaders>

This parses @{link BlobProperties from HTTP headers.

Author:
Adrian Cole

Constructor Summary
ParseBlobPropertiesFromHeaders(ParseSystemAndUserMetadataFromHeaders blobMetadataParser, BlobMetadataToBlobProperties blobToBlobProperties)
           
 
Method Summary
 MutableBlobProperties apply(HttpResponse from)
          parses the http response headers to create a new MutableBlobProperties object.
 ParseBlobPropertiesFromHeaders setContext(HttpRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Function
equals
 

Constructor Detail

ParseBlobPropertiesFromHeaders

@Inject
public ParseBlobPropertiesFromHeaders(ParseSystemAndUserMetadataFromHeaders blobMetadataParser,
                                             BlobMetadataToBlobProperties blobToBlobProperties)
Method Detail

apply

public MutableBlobProperties apply(HttpResponse from)
parses the http response headers to create a new MutableBlobProperties object.

Specified by:
apply in interface com.google.common.base.Function<HttpResponse,MutableBlobProperties>

setContext

public ParseBlobPropertiesFromHeaders setContext(HttpRequest request)
Specified by:
setContext in interface InvocationContext<ParseBlobPropertiesFromHeaders>


Copyright © 2009-2012 jclouds. All Rights Reserved.