org.jclouds.blobstore.functions
Class ParseBlobFromHeadersAndHttpContent
java.lang.Object
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
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 |
ParseBlobFromHeadersAndHttpContent
@Inject
public ParseBlobFromHeadersAndHttpContent(ParseSystemAndUserMetadataFromHeaders metadataParser,
Blob.Factory blobFactory)
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.