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