public class ParseSystemAndUserMetadataFromHeaders extends Object implements com.google.common.base.Function<HttpResponse,MutableBlobMetadata>, InvocationContext<ParseSystemAndUserMetadataFromHeaders>
Constructor and Description |
---|
ParseSystemAndUserMetadataFromHeaders(javax.inject.Provider<MutableBlobMetadata> metadataFactory,
DateService dateParser,
String metadataPrefix) |
Modifier and Type | Method and Description |
---|---|
protected void |
addETagTo(HttpResponse from,
MutableBlobMetadata metadata) |
MutableBlobMetadata |
apply(HttpResponse from) |
ParseSystemAndUserMetadataFromHeaders |
setContext(HttpRequest request) |
ParseSystemAndUserMetadataFromHeaders |
setName(String name) |
@Inject public ParseSystemAndUserMetadataFromHeaders(javax.inject.Provider<MutableBlobMetadata> metadataFactory, DateService dateParser, @Named(value="jclouds.blobstore.metaprefix") String metadataPrefix)
public MutableBlobMetadata apply(HttpResponse from)
apply
in interface com.google.common.base.Function<HttpResponse,MutableBlobMetadata>
protected void addETagTo(HttpResponse from, MutableBlobMetadata metadata)
public ParseSystemAndUserMetadataFromHeaders setContext(HttpRequest request)
setContext
in interface InvocationContext<ParseSystemAndUserMetadataFromHeaders>
public ParseSystemAndUserMetadataFromHeaders setName(String name)
Copyright © 2009-2013 jclouds. All Rights Reserved.