org.jclouds.azureblob.functions
Class ParseBlobPropertiesFromHeaders
java.lang.Object
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
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 |
ParseBlobPropertiesFromHeaders
@Inject
public ParseBlobPropertiesFromHeaders(ParseSystemAndUserMetadataFromHeaders blobMetadataParser,
BlobMetadataToBlobProperties blobToBlobProperties)
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-2011 jclouds. All Rights Reserved.