org.jclouds.blobstore.functions
Class ParseBlobFromHeadersAndHttpContent

java.lang.Object
  extended by org.jclouds.blobstore.functions.ParseBlobFromHeadersAndHttpContent
All Implemented Interfaces:
com.google.common.base.Function<HttpResponse,Blob>, InvocationContext<ParseBlobFromHeadersAndHttpContent>

public class ParseBlobFromHeadersAndHttpContent
extends Object
implements com.google.common.base.Function<HttpResponse,Blob>, InvocationContext<ParseBlobFromHeadersAndHttpContent>

Parses response headers and creates a new Blob from them and the HTTP content.

Author:
Adrian Cole
See Also:
ParseSystemAndUserMetadataFromHeaders

Constructor Summary
ParseBlobFromHeadersAndHttpContent(ParseSystemAndUserMetadataFromHeaders metadataParser, Blob.Factory blobFactory)
           
 
Method Summary
 Blob apply(HttpResponse from)
           
 ParseBlobFromHeadersAndHttpContent setContext(HttpRequest request)
           
 
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

ParseBlobFromHeadersAndHttpContent

@Inject
public ParseBlobFromHeadersAndHttpContent(ParseSystemAndUserMetadataFromHeaders metadataParser,
                                                 Blob.Factory blobFactory)
Method Detail

apply

public Blob apply(HttpResponse from)
Specified by:
apply in interface com.google.common.base.Function<HttpResponse,Blob>

setContext

public ParseBlobFromHeadersAndHttpContent setContext(HttpRequest request)
Specified by:
setContext in interface InvocationContext<ParseBlobFromHeadersAndHttpContent>


Copyright © 2009-2011 jclouds. All Rights Reserved.