org.jclouds.blobstore.functions
Class ParseSystemAndUserMetadataFromHeaders

java.lang.Object
  extended by 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

Constructor Summary
ParseSystemAndUserMetadataFromHeaders(javax.inject.Provider<MutableBlobMetadata> metadataFactory, DateService dateParser, String metadataPrefix)
           
 
Method Summary
protected  void addETagTo(HttpResponse from, MutableBlobMetadata metadata)
           
 MutableBlobMetadata apply(HttpResponse from)
           
 ParseSystemAndUserMetadataFromHeaders setContext(HttpRequest request)
           
 ParseSystemAndUserMetadataFromHeaders setName(String name)
           
 
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
 

Constructor Detail

ParseSystemAndUserMetadataFromHeaders

@Inject
public ParseSystemAndUserMetadataFromHeaders(javax.inject.Provider<MutableBlobMetadata> metadataFactory,
                                                    DateService dateParser,
                                                    @Named(value="jclouds.blobstore.metaprefix")
                                                    String metadataPrefix)
Method Detail

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.