Package org.jclouds.s3.functions
Class ParseObjectMetadataFromHeaders
java.lang.Object
org.jclouds.s3.functions.ParseObjectMetadataFromHeaders
- All Implemented Interfaces:
com.google.common.base.Function<HttpResponse,,MutableObjectMetadata> Function<HttpResponse,,MutableObjectMetadata> InvocationContext<ParseObjectMetadataFromHeaders>
public class ParseObjectMetadataFromHeaders
extends Object
implements com.google.common.base.Function<HttpResponse,MutableObjectMetadata>, InvocationContext<ParseObjectMetadataFromHeaders>
This parses invalid input: '{@' link MutableObjectMetadata} from HTTP headers.
-
Constructor Summary
ConstructorsConstructorDescriptionParseObjectMetadataFromHeaders(ParseSystemAndUserMetadataFromHeaders blobMetadataParser, BlobToObjectMetadata blobToObjectMetadata, String userMdPrefix) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddETagTo(HttpResponse from, MutableObjectMetadata metadata) ETag == Content-MD5apply(HttpResponse from) parses the http response headers to create a newMutableObjectMetadataobject.setContext(HttpRequest request) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.common.base.Function
equals
-
Constructor Details
-
ParseObjectMetadataFromHeaders
@Inject public ParseObjectMetadataFromHeaders(ParseSystemAndUserMetadataFromHeaders blobMetadataParser, BlobToObjectMetadata blobToObjectMetadata, @Named("jclouds.blobstore.metaprefix") String userMdPrefix)
-
-
Method Details
-
apply
parses the http response headers to create a newMutableObjectMetadataobject.- Specified by:
applyin interfacecom.google.common.base.Function<HttpResponse,MutableObjectMetadata> - Specified by:
applyin interfaceFunction<HttpResponse,MutableObjectMetadata>
-
addETagTo
ETag == Content-MD5 -
setContext
- Specified by:
setContextin interfaceInvocationContext<ParseObjectMetadataFromHeaders>
-
setKey
-