public class ParseBlobPropertiesFromHeaders extends Object implements com.google.common.base.Function<HttpResponse,MutableBlobProperties>, InvocationContext<ParseBlobPropertiesFromHeaders>
BlobProperties
from HTTP
headers.Constructor and Description |
---|
ParseBlobPropertiesFromHeaders(ParseSystemAndUserMetadataFromHeaders blobMetadataParser,
BlobMetadataToBlobProperties blobToBlobProperties) |
Modifier and Type | Method and Description |
---|---|
MutableBlobProperties |
apply(HttpResponse from)
parses the http response headers to create a new
MutableBlobProperties object. |
ParseBlobPropertiesFromHeaders |
setContext(HttpRequest request) |
@Inject public ParseBlobPropertiesFromHeaders(ParseSystemAndUserMetadataFromHeaders blobMetadataParser, BlobMetadataToBlobProperties blobToBlobProperties)
public MutableBlobProperties apply(HttpResponse from)
MutableBlobProperties
object.apply
in interface com.google.common.base.Function<HttpResponse,MutableBlobProperties>
public ParseBlobPropertiesFromHeaders setContext(HttpRequest request)
setContext
in interface InvocationContext<ParseBlobPropertiesFromHeaders>
Copyright © 2009-2013 jclouds. All Rights Reserved.