Package org.jclouds.blobstore.functions
Class ParseSystemAndUserMetadataFromHeaders
- java.lang.Object
-
- org.jclouds.blobstore.functions.ParseSystemAndUserMetadataFromHeaders
-
- All Implemented Interfaces:
com.google.common.base.Function<HttpResponse,MutableBlobMetadata>
,Function<HttpResponse,MutableBlobMetadata>
,InvocationContext<ParseSystemAndUserMetadataFromHeaders>
public class ParseSystemAndUserMetadataFromHeaders extends Object implements com.google.common.base.Function<HttpResponse,MutableBlobMetadata>, InvocationContext<ParseSystemAndUserMetadataFromHeaders>
-
-
Constructor Summary
Constructors Constructor Description ParseSystemAndUserMetadataFromHeaders(javax.inject.Provider<MutableBlobMetadata> metadataFactory, DateService dateParser, String metadataPrefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addETagTo(HttpResponse from, MutableBlobMetadata metadata)
MutableBlobMetadata
apply(HttpResponse from)
ParseSystemAndUserMetadataFromHeaders
setContext(HttpRequest request)
ParseSystemAndUserMetadataFromHeaders
setName(String name)
-
-
-
Constructor Detail
-
ParseSystemAndUserMetadataFromHeaders
@Inject public ParseSystemAndUserMetadataFromHeaders(javax.inject.Provider<MutableBlobMetadata> metadataFactory, DateService dateParser, @Named("jclouds.blobstore.metaprefix") String metadataPrefix)
-
-
Method Detail
-
apply
public MutableBlobMetadata apply(HttpResponse from)
- Specified by:
apply
in interfacecom.google.common.base.Function<HttpResponse,MutableBlobMetadata>
- Specified by:
apply
in interfaceFunction<HttpResponse,MutableBlobMetadata>
-
addETagTo
protected void addETagTo(HttpResponse from, MutableBlobMetadata metadata)
-
setContext
public ParseSystemAndUserMetadataFromHeaders setContext(HttpRequest request)
- Specified by:
setContext
in interfaceInvocationContext<ParseSystemAndUserMetadataFromHeaders>
-
setName
public ParseSystemAndUserMetadataFromHeaders setName(String name)
-
-