Package org.jclouds.azureblob.functions
Class ParseBlobFromHeadersAndHttpContent
- java.lang.Object
-
- org.jclouds.azureblob.functions.ParseBlobFromHeadersAndHttpContent
-
- All Implemented Interfaces:
com.google.common.base.Function<HttpResponse,AzureBlob>
,Function<HttpResponse,AzureBlob>
,InvocationContext<ParseBlobFromHeadersAndHttpContent>
@Singleton public class ParseBlobFromHeadersAndHttpContent extends Object implements com.google.common.base.Function<HttpResponse,AzureBlob>, InvocationContext<ParseBlobFromHeadersAndHttpContent>
Parses response headers and creates a new AzureBlob from them and the HTTP content.- See Also:
ParseMetadataFromHeaders
-
-
Constructor Summary
Constructors Constructor Description ParseBlobFromHeadersAndHttpContent(ParseBlobPropertiesFromHeaders metadataParser, AzureBlob.Factory blobFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AzureBlob
apply(HttpResponse from)
ParseBlobFromHeadersAndHttpContent
setContext(HttpRequest request)
-
-
-
Constructor Detail
-
ParseBlobFromHeadersAndHttpContent
@Inject public ParseBlobFromHeadersAndHttpContent(ParseBlobPropertiesFromHeaders metadataParser, AzureBlob.Factory blobFactory)
-
-
Method Detail
-
apply
public AzureBlob apply(HttpResponse from)
- Specified by:
apply
in interfacecom.google.common.base.Function<HttpResponse,AzureBlob>
- Specified by:
apply
in interfaceFunction<HttpResponse,AzureBlob>
-
setContext
public ParseBlobFromHeadersAndHttpContent setContext(HttpRequest request)
- Specified by:
setContext
in interfaceInvocationContext<ParseBlobFromHeadersAndHttpContent>
-
-