Package org.jclouds.s3.functions
Class ParseObjectMetadataFromHeaders
java.lang.Object
org.jclouds.s3.functions.ParseObjectMetadataFromHeaders
- All Implemented Interfaces:
com.google.common.base.Function<org.jclouds.http.HttpResponse,,MutableObjectMetadata> Function<org.jclouds.http.HttpResponse,,MutableObjectMetadata> org.jclouds.rest.InvocationContext<ParseObjectMetadataFromHeaders>
public class ParseObjectMetadataFromHeaders
extends Object
implements com.google.common.base.Function<org.jclouds.http.HttpResponse,MutableObjectMetadata>, org.jclouds.rest.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(org.jclouds.http.HttpResponse from, MutableObjectMetadata metadata) ETag == Content-MD5apply(org.jclouds.http.HttpResponse from) parses the http response headers to create a newMutableObjectMetadataobject.setContext(org.jclouds.http.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<org.jclouds.http.HttpResponse,MutableObjectMetadata> - Specified by:
applyin interfaceFunction<org.jclouds.http.HttpResponse,MutableObjectMetadata>
-
addETagTo
ETag == Content-MD5 -
setContext
- Specified by:
setContextin interfaceorg.jclouds.rest.InvocationContext<ParseObjectMetadataFromHeaders>
-
setKey
-