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