org.jclouds.blobstore.functions
Class ParseSystemAndUserMetadataFromHeaders
java.lang.Object
org.jclouds.blobstore.functions.ParseSystemAndUserMetadataFromHeaders
- All Implemented Interfaces:
- com.google.common.base.Function<HttpResponse,MutableBlobMetadata>, InvocationContext<ParseSystemAndUserMetadataFromHeaders>
public class ParseSystemAndUserMetadataFromHeaders
- extends Object
- implements com.google.common.base.Function<HttpResponse,MutableBlobMetadata>, InvocationContext<ParseSystemAndUserMetadataFromHeaders>
- Author:
- Adrian Cole
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.google.common.base.Function |
equals |
ParseSystemAndUserMetadataFromHeaders
@Inject
public ParseSystemAndUserMetadataFromHeaders(javax.inject.Provider<MutableBlobMetadata> metadataFactory,
DateService dateParser,
@Named(value="jclouds.blobstore.metaprefix")
String metadataPrefix)
apply
public MutableBlobMetadata apply(HttpResponse from)
- Specified by:
apply
in interface com.google.common.base.Function<HttpResponse,MutableBlobMetadata>
addETagTo
protected void addETagTo(HttpResponse from,
MutableBlobMetadata metadata)
setContext
public ParseSystemAndUserMetadataFromHeaders setContext(HttpRequest request)
- Specified by:
setContext
in interface InvocationContext<ParseSystemAndUserMetadataFromHeaders>
setName
public ParseSystemAndUserMetadataFromHeaders setName(String name)
Copyright © 2009-2011 jclouds. All Rights Reserved.