Package org.jclouds.blobstore.functions
Class ParseBlobFromHeadersAndHttpContent
- java.lang.Object
-
- org.jclouds.blobstore.functions.ParseBlobFromHeadersAndHttpContent
-
- All Implemented Interfaces:
com.google.common.base.Function<HttpResponse,Blob>
,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.- See Also:
ParseSystemAndUserMetadataFromHeaders
-
-
Constructor Summary
Constructors Constructor Description ParseBlobFromHeadersAndHttpContent(ParseSystemAndUserMetadataFromHeaders metadataParser, Blob.Factory blobFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Blob
apply(HttpResponse from)
ParseBlobFromHeadersAndHttpContent
setContext(HttpRequest request)
-
-
-
Constructor Detail
-
ParseBlobFromHeadersAndHttpContent
@Inject public ParseBlobFromHeadersAndHttpContent(ParseSystemAndUserMetadataFromHeaders metadataParser, Blob.Factory blobFactory)
-
-
Method Detail
-
apply
public Blob apply(HttpResponse from)
- Specified by:
apply
in interfacecom.google.common.base.Function<HttpResponse,Blob>
- Specified by:
apply
in interfaceFunction<HttpResponse,Blob>
-
setContext
public ParseBlobFromHeadersAndHttpContent setContext(HttpRequest request)
- Specified by:
setContext
in interfaceInvocationContext<ParseBlobFromHeadersAndHttpContent>
-
-